Skip to content

Add support for COLLECTION_DIRS in Docker #23

Description

@grantfitzsimmons

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions