Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Also prepare the filesystem when a command is given #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

stacyharper
Copy link

start.sh is run when no command is given when starting a container.

But when the makefiles run the container, with a composer install
command, we also need to make sure the filesystem got the correct ACLs.

To do so, we now prepare the filesystem in a new prepare.sh entrypoint.

We use an additional prepare.sh, and not entry.sh, because it allow the
projects to extends this, without rewriting entry.sh.

This also clean and improve the shell code.

start.sh is run when no command is given when starting a container.

But when the makefiles run the container, with a composer install
command, we also need to make sure the filesystem got the correct ACLs.

To do so, we now prepare the filesystem in a new prepare.sh entrypoint.

We use an additional prepare.sh, and not entry.sh, because it allow the
projects to extends this, without rewriting entry.sh.

This also clean and improve the shell code.
At this point we already expect for www-data to be configured as 1000.

Also, we don't chown the group, because then the folder group will keep the
default id, which mean be readable to the host user group while docker
is run rootless.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant