Skip to content

Instantly share code, notes, and snippets.

@mstanuch
Created July 11, 2021 08:18
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstanuch/06208dbcb4423a4536fef96520df35d3 to your computer and use it in GitHub Desktop.
Save mstanuch/06208dbcb4423a4536fef96520df35d3 to your computer and use it in GitHub Desktop.
Apple M1 KeyCloak docker image build
#/bin/zsh
# Workaround for https://github.com/docker/for-mac/issues/5310
VERSION=14.0.0 # set version here
cd /tmp
git clone git@github.com:keycloak/keycloak-containers.git
cd keycloak-containers/server
git checkout $VERSION
docker build -t "jboss/keycloak:${VERSION}" .
docker build -t "quay.io/keycloak/keycloak:${VERSION}" .
@xpunch
Copy link

xpunch commented Mar 4, 2022

for keycloak 17.0.0

VERSION=17.0.0 # set version here
cd /tmp
git clone git@github.com:keycloak/keycloak.git
cd keycloak/quarkus/container
git checkout $VERSION
docker build -t "quarkus-keycloak:$VERSION" .
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin "quarkus-keycloak:$VERSION" start-dev --http-relative-path /auth

keycloak/keycloak#8846 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment