teutat3s
4fb3e3f6a4
• Updated input 'devshell': 'github:numtide/devshell/f9238ec3d75cefbb2b42a44948c4e8fb1ae9a205' (2023-07-03) → 'github:numtide/devshell/83cb93d6d063ad290beee669f4badf9914cc16ec' (2024-01-15) • Added input 'devshell/flake-utils': 'github:numtide/flake-utils/4022d587cbbfd70fe950c1e2083a02621806a725' (2023-12-04) • Added input 'devshell/flake-utils/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) • Removed input 'devshell/systems' • Updated input 'flake-utils': 'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11) → 'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e74e68449c385db82de3170288a28cd0f608544f' (2023-07-13) → 'github:nixos/nixpkgs/faf912b086576fd1a15fca610166c98d47bc667e' (2024-02-05) |
||
---|---|---|
.dev-import | ||
account | ||
admin | ||
common | ||
login | ||
pkgs | ||
welcome | ||
.envrc | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
overlay.nix | ||
README.md | ||
shell.nix |
pub.solar Keycloak theme
Development setup
To start a Dev Keycloak instance that can show the pub.solar theme, you need to do the following:
-
Go into Keycloak's Administration Console, and export the
pub.solar
realm config. In Keycloak, open the pub.solar realm, click on the menu item "Realm settings", open the dropdown "Action", and click "Partial export". Move the generated JSON file into./.dev-imports
in this repo. -
Run the following command:
docker run \
--name keycloak-theme-dev \
-p 8080:8080 \
-e KEYCLOAK_ADMIN=admin \
-e KEYCLOAK_ADMIN_PASSWORD=admin \
-v $(pwd):/opt/keycloak/themes/pub.solar \
-v $(pwd)/.dev-import:/opt/keycloak/data/import \
quay.io/keycloak/keycloak:21.1.1 \
start-dev --import-realm --features="declarative-user-profile"
-
After this, you can start and stop the container using
docker start keycloak-theme-dev
anddocker-stop keycloak-theme-dev
. -
Connect to the local Keycloak instance at http://localhost:8080 and open the Administration Console. Login with username:
admin
, password:admin
. -
To view the theme in action, open http://localhost:8080/realms/pub.solar/account