Open datamattsson opened 7 years ago
Thanks for the input! Since these directories will contain persistent data, our thought was that if people did not want to go with the default localData/localMetadata, they would want to set up the directories themselves, but we can revisit that approach.
Thank you for your reply. Since localData and localMetaData are shipped empty, they should be created by the entrypoint script, taking the environment variables into account.
$ docker run --rm -it scality/s3server bash -c "ls -al local*"
localData:
total 12
drwxr-xr-x 2 root root 4096 Sep 21 20:38 .
drwxr-xr-x 1 root root 4096 Aug 15 19:52 ..
-rw-r--r-- 1 root root 71 Aug 15 19:51 .gitignore
localMetadata:
total 12
drwxr-xr-x 2 root root 4096 Sep 21 20:38 .
drwxr-xr-x 1 root root 4096 Aug 15 19:52 ..
-rw-r--r-- 1 root root 71 Aug 15 19:51 .gitignore
Description
I'm using the scality/s3server image and I find the behavior of the S3METADATAPATH and S3DATAPATH environment variables not following common patterns for container images.
Steps to reproduce the issue
Actual result
Output:
Expected result
Docker entrypoint script creating the non-existing directories mentioned in the output:
Additional information: (Node.js version, Docker version, etc)
Feature Request
Create the directories specified in the environment variables if they are set and are not already created.
Use case
The common patterns found with other container images is to be smarter about these things and not force the user to customize the entrypoint.