replicate script works again w/ burnettk cullerton

This commit is contained in:
jasquat 2022-07-14 16:46:39 -04:00
parent 583da731db
commit 0343d8f805
1 changed files with 3 additions and 1 deletions

View File

@ -7,11 +7,13 @@ function error_handler() {
trap 'error_handler ${LINENO} $?' ERR
set -o errtrace -o errexit -o nounset -o pipefail
script_dir="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
docker stop keycloak || echo 'no keycloak container found'
docker rm keycloak 2>/dev/null || echo 'no keycloak container found'
docker run -p 8080:8080 -d --name keycloak -e KEYCLOAK_LOGLEVEL=ALL -e ROOT_LOGLEVEL=ALL -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:18.0.2 start-dev -Dkeycloak.profile.feature.token_exchange=enabled -Dkeycloak.profile.feature.admin_fine_grained_authz=enabled
docker cp bin/testing-realm.json keycloak:/tmp
docker cp "${script_dir}/testing-realm.json" keycloak:/tmp
sleep 10
docker exec keycloak /opt/keycloak/bin/kc.sh import --file /tmp/testing-realm.json || echo ''