feat: configure Drupal file paths in Nginx Dockerfile #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
This change sets up the default environment variables and file paths for a Drupal application running in an Nginx container. It creates a symlink to the default location where the persistent files are stored, which is usually done at runtime by calling the makefiles script. This change ensures that the file paths are properly configured without having to run the script every time the container is started.
Why
Currently we create the symlink using the
make -f /usr/local/bin/actions.mk init
command when we start the container, which calls theinit
script and in our scenario does the same thing as we are doing here by calling thefiles_link
command.This is not great as it requires an additional step at deploy time, and since we always use the same setup we can hardcode this at build time instead of at run time.
Additional info
This is the nginx companion of previous PRs: #7