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.

44 lines
1.1 KiB

3 years ago
  1. # Keycloak image with juice theme inside
  2. A short project that inject juice theme into a docker image.
  3. Juice theme should be located in `./juice` folder.
  4. !!!IMPORTANT!!!: IF YOU MAKE AN UPDATE, PLEASE UPDATE THE VERSION.INI FILE ACORDING TO STANDARD VERSIONING RULES (NUMBERS ONLY).
  5. ## Docker commands
  6. ### Build the image
  7. Build an image with tag jce-keycloak.
  8. ```bash
  9. docker build -t jce-keycloak .
  10. ```
  11. ### Stop previously running container
  12. ```bash
  13. docker stop jce-keycloak
  14. ```
  15. ### Start a container
  16. ```bash
  17. docker run --rm -it -d \
  18. -p 8080:8080 \
  19. -e KEYCLOAK_USER=admin \
  20. -e KEYCLOAK_PASSWORD=admin \
  21. -e DB_VENDOR=postgres \
  22. -e DB_ADDR=172.17.0.1 \
  23. -e DB_DATABASE=keycloak \
  24. -e DB_USER=keycloak \
  25. -e DB_PASSWORD=keycloak \
  26. --name jce-keycloak \
  27. jce-keycloak
  28. ```
  29. Linux: PGHOST=172.17.0.1
  30. Mac&Win: PGHOST=host.docker.internal
  31. ## Testing
  32. 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.
  33. The script includes installable package listed at the top.
  34. Change configuration inside of the script according to your realm settings.