Skip to content

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