- You need to have docker installed on your development environment
- Follow the instructions bellow to run this theme
- https://youtu.be/qrjjiG1206E ( tutorial pt-br )
Attention: Configure Volume folder in your environment and replace this (~/database/postgres)
docker run -d --name postgres \
-p 5432:5432 \
-e POSTGRES_DB=keycloak \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-v ~/database/postgres:/var/lib/postgresql/data \
--restart always postgres:latest
docker run -d --name keycloak \
-p 8080:8080 \
-e DB_VENDOR=postgres \
-e DB_ADDR=postgres \
-e DB_DATABASE=keycloak \
-e DB_SCHEMA=public \
-e DB_USER=postgres \
-e DB_PASSWORD=postgres \
-e KEYCLOAK_USER=admin \
-e KEYCLOAK_PASSWORD=admin \
--link postgres \
--restart always quay.io/keycloak/keycloak:16.1.0
mkdir keycloak
cd keycloak
docker cp keycloak:/opt/jboss/keycloak/themes .
git clone https://github.com/wrsouza/keycloak-theme-vuejs
embed-server --std-out=echo --server-config=standalone-ha.xml
/subsystem=keycloak-server/theme=defaults/:write-attribute(name=cacheThemes,value=false)
/subsystem=keycloak-server/theme=defaults/:write-attribute(name=cacheTemplates,value=false)
/subsystem=keycloak-server/theme=defaults/:write-attribute(name=staticMaxAge,value=-1)
stop-embedded-server
docker rm -f keycloak
docker run -d --name keycloak \
-p 8080:8080 \
-e DB_VENDOR=postgres \
-e DB_ADDR=postgres \
-e DB_DATABASE=keycloak \
-e DB_SCHEMA=public \
-e DB_USER=postgres \
-e DB_PASSWORD=postgres \
-e KEYCLOAK_USER=admin \
-e KEYCLOAK_PASSWORD=admin \
--link postgres \
-v ~/keycloak/themes:/opt/jboss/keycloak/themes \
-v ~/keycloak/disable-theme-cache.cli:/opt/jboss/startup-scripts/disable-theme-cache.cli \
--restart always quay.io/keycloak/keycloak:16.1.0
cd keycloak-theme-vuejs
yarn
yarn build
keycloakUrl: http://localhost:8080
username: admin
password: admin