Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 881 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 881 Bytes

build and upload docker image

docker login --username=dockersidn --password=yourpassword
docker build -t dockersidn/azure-keycloak-poc:v1 .
sudo docker push dockersidn/azure-keycloak-poc:v1

frontend in Azure

vi frontend-poc.yml
kubectl apply -f frontend-poc.yml
kubectl get service azure-keycloak-poc --watch

keycloak container

https://hub.docker.com/r/jboss/keycloak
docker run -p 8080:8080 jboss/keycloak

docker run -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin
-e KEYCLOAK_IMPORT=/tmp/example-realm.json -v /tmp/example-realm.json:/tmp/example-realm.json jboss/keycloak

docker run -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -e DB_VENDOR=H2 jboss/keycloak

Keycloak code copied/adapted from https://github.com/kmikulski/blog-keycloak/blob/master/keycloak-react-part1 and https://scalac.io/user-authentication-keycloak-1/ .