-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
As suggested by @GCorbel (thanks 🎩), we could allow the user to execute some project-specific shell script (some beloved shell aliases, for example) before any command run in the container.
It could be a new very simple entrypoint like that:
#!/bin/bash
CUSTOM_ENTYRYPOINT="/app/.entrypoint-additions.sh"
[ -x "${CUSTOM_ENTYPOINT}" ] && . "${CUSTOM_ENTRYPOINT}"
exec "$@"It would let users have a .entrypoint-additions.sh script in their project root with commands to execute after the image default entrypoint(s).
It should not be used for cpu- or network-intensive commands, though (like
apt-get installorgem install), otherwise I guarantee that users will go insane soon (it's executed before every command, even to start a shell).
Metadata
Metadata
Assignees
Labels
No labels