Source: Speciforum
I am not a developer, but from what I gather in our Dockerfile on GitHub, it does not appear that the docker-compose.yml file supports setting up COLLECTION_DIRS at this time. This may be possible with some modification on our end.
See these lines in the Dockerfile:
|
RUN echo \ |
|
"import os" \ |
|
"\nSERVER = 'paste'" \ |
|
"\nSERVER_NAME = os.environ['SERVER_NAME']" \ |
|
"\nSERVER_PORT = int(os.getenv('SERVER_PORT', 8080))" \ |
|
"\nKEY = os.environ['ATTACHMENT_KEY']" \ |
|
"\nDEBUG = os.getenv('DEBUG_MODE', 'false').lower() == 'true'" \ |
|
>> settings.py |
While the SERVER_NAME, SERVER_PORT, ATTACHMENT_KEY, and DEBUG_MODE environmental variables are entered, there is no support in our current docker deployment method for the user to submit the collection directories through the compose file.
The RUN command could likely be modified to passthrough the you are setting in the compose file, but it is currently structured as it needs to be stored in the settings.py file rather than the environmental variable format the docker-compose.yml and Dockerfile are set up to expect.
Requested By: Fedor at NHMD
Source: Speciforum
I am not a developer, but from what I gather in our
Dockerfileon GitHub, it does not appear that thedocker-compose.ymlfile supports setting upCOLLECTION_DIRSat this time. This may be possible with some modification on our end.See these lines in the Dockerfile:
web-asset-server/Dockerfile
Lines 28 to 35 in ae6c660
While the
SERVER_NAME,SERVER_PORT,ATTACHMENT_KEY, andDEBUG_MODEenvironmental variables are entered, there is no support in our current docker deployment method for the user to submit the collection directories through the compose file.The
RUNcommand could likely be modified to passthrough the you are setting in the compose file, but it is currently structured as it needs to be stored in thesettings.pyfile rather than the environmental variable format thedocker-compose.ymlandDockerfileare set up to expect.Requested By: Fedor at NHMD