Skip to content

Instantly share code, notes, and snippets.

@dsferruzza
Created November 26, 2019 12:44
Show Gist options
  • Save dsferruzza/cf8afe8f78976329d3ef1ae4ab6deafc to your computer and use it in GitHub Desktop.
Save dsferruzza/cf8afe8f78976329d3ef1ae4ab6deafc to your computer and use it in GitHub Desktop.
Keycloak 8.0.0 on Clever Cloud
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"]
#!/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