Last active
December 29, 2015 11:49
-
-
Save tianon/7666484 to your computer and use it in GitHub Desktop.
setting environment variables from ENTRYPOINT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jpetazzo/busybox | |
ADD entrypoint.sh / | |
ENTRYPOINT ["/entrypoint.sh"] | |
CMD ["sh", "-c", "echo $SOME_TEST_VARIABLE"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export SOME_TEST_VARIABLE='this is my test variable contents from the ENTRYPOINT' | |
exec "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is my test variable contents from the ENTRYPOINT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment