Created
November 26, 2019 12:44
-
-
Save dsferruzza/cf8afe8f78976329d3ef1ae4ab6deafc to your computer and use it in GitHub Desktop.
Keycloak 8.0.0 on Clever Cloud
This file contains 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 jboss/keycloak:8.0.0 | |
ADD run.sh /opt/run.sh | |
ENTRYPOINT /opt/run.sh | |
CMD ["-b", "0.0.0.0", "--server-config", "standalone-ha.xml"] |
This file contains 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
#!/usr/bin/env bash | |
set -euo pipefail | |
if [[ -z ${BIND:-} ]]; then | |
BIND=$(hostname --all-ip-addresses | cut -d " " -f 1) | |
export BIND | |
fi | |
echo "Binding to $BIND" | |
/opt/jboss/tools/docker-entrypoint.sh "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment