You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1.2 KiB

Keycloak image with juice theme inside

A short project that inject juice theme into a docker image. Juice theme should be located in ./juice folder.

!!!IMPORTANT!!!: IF YOU MAKE AN UPDATE, PLEASE UPDATE THE VERSION.INI FILE ACORDING TO STANDARD VERSIONING RULES (NUMBERS ONLY).

Docker commands

Build the image

Build an image with tag juice-keycloak.

docker build -t juice-keycloak .

Stop previously running container

docker stop juice-keycloak

Start a container

docker run --rm -it -d \
  -p 8080:8080 \
  -e KEYCLOAK_USER=admin \
  -e KEYCLOAK_PASSWORD=admin \
  -e DB_VENDOR=postgres \
  -e DB_ADDR=172.17.0.1 \
  -e DB_DATABASE=keycloak \
  -e DB_USER=keycloak \
  -e DB_PASSWORD=keycloak \
  --name juice-keycloak \
  juice-keycloak

Linux: PGHOST=172.17.0.1 Mac&Win: PGHOST=host.docker.internal

Testing

There is a file url.test.js that will generate a login URL. After sucessfull login, provide the redirect url from the browser as an argument for the script to acquire tokens.

The script includes installable package listed at the top.

Change configuration inside of the script according to your realm settings.