You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OrientDB Version: 3.0.29 Issue type: Non-root docker image for OrientDB
Description:
I am trying to create a OrientDB non root image. Following is my docker file.
FROM orientdb:3.0.29
#Create a group and user
RUN addgroup --system inteliuser --gid 1000 && adduser --system inteliuser --ingroup inteliuser --uid 1000
#Change permissions
RUN chmod -R ugo+rwx /orientdb /usr/local/openjdk-8/bin
#Tell docker that all future commands should run as the respected user
USER inteliuser
CMD [ "server.sh" ]
This works fine in local docker but when I try to run this on AKS cluster with volume mount on PVC managed disk, volume gives permission deny error for creating OSystem database.
I tried to run this without volume mount and it worked correctly and was able to create databases. Not sure why it is giving error to volume mount.
I have also tried by placing command arguments to the kubernetes deployment template. So that I can get time to check permissions defined. Following output I got,
inteliuser@orientdbservice1-57bb96d69f-xchnf:/orientdb$ ls -l
total 132
drwxr-xr-x 2 root root 4096 Jun 7 08:53 backup
drwxr-xr-x 11 root root 4096 Jun 4 09:17 backups
drwxrwxrwx 1 root root 4096 Mar 4 2020 bin
drwxrwxrwx 3 501 staff 4096 Jun 7 08:53 config
drwxr-xr-x 2 root root 4096 Jun 4 09:06 databases
-r--r--r-- 1 501 staff 75664 Mar 3 2020 history.txt
drwxrwxrwx 1 root root 4096 Mar 4 2020 lib
-r--r--r-- 1 501 staff 11357 Dec 3 2019 license.txt
drwxr-xr-x 2 501 staff 4096 Mar 3 2020 log
drwxrwxrwx 1 501 staff 4096 Mar 4 2020 plugins
-r--r--r-- 1 501 staff 3209 Dec 3 2019 readme.txt
drwxrwxrwx 1 501 staff 4096 Dec 3 2019 www
I am not able to create a directory or a file in volume mounted folders. Whereas I am able to create files or directories in /orientdb dir.
Note: This volume mount works with normal root image.
The text was updated successfully, but these errors were encountered:
OrientDB Version: 3.0.29
Issue type: Non-root docker image for OrientDB
Description:
I am trying to create a OrientDB non root image. Following is my docker file.
This works fine in local docker but when I try to run this on AKS cluster with volume mount on PVC managed disk, volume gives permission deny error for creating OSystem database.
I tried to run this without volume mount and it worked correctly and was able to create databases. Not sure why it is giving error to volume mount.
I have also tried by placing command arguments to the kubernetes deployment template. So that I can get time to check permissions defined. Following output I got,
I am not able to create a directory or a file in volume mounted folders. Whereas I am able to create files or directories in /orientdb dir.
Note: This volume mount works with normal root image.
The text was updated successfully, but these errors were encountered: