Skip to content

Commit

Permalink
crlf
Browse files Browse the repository at this point in the history
  • Loading branch information
janakrenn committed Sep 27, 2024
1 parent 7c29b19 commit 4c3100d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/k8s/keycloak/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/keycloak/keycloak:latest as builder
FROM quay.io/keycloak/keycloak:23 AS builder

# Enable health and metrics support
ENV KC_HEALTH_ENABLED=true
Expand All @@ -13,7 +13,7 @@ WORKDIR /opt/keycloak
RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore conf/server.keystore
RUN /opt/keycloak/bin/kc.sh build --health-enabled=true --metrics-enabled=true

FROM quay.io/keycloak/keycloak:latest
FROM quay.io/keycloak/keycloak:23
COPY --from=builder /opt/keycloak/ /opt/keycloak/
# COPY ./import/ /opt/keycloak/data/import/
# change these values to point to a running postgres instance
Expand Down
2 changes: 1 addition & 1 deletion app/k8s/keycloak/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
imagePullPolicy: Always
#command: ["/opt/keycloak/bin/kc.sh", "start-dev", "--proxy", "edge", "--features=declarative-user-profile", "--spi-x509cert-lookup-haproxy-trust-proxy-verification=true"]
# kubectl port-forward key... 8000:8080 for admin - ui
command: ["/opt/keycloak/bin/kc.sh", "start-dev", "--proxy", "edge", "--features=declarative-user-profile", "--spi-x509cert-lookup-haproxy-trust-proxy-verification=true", "--hostname-admin-url=http://localhost:8000", "--log-level=INFO" ]
command: ["/opt/keycloak/bin/kc.sh", "start-dev", "--proxy", "edge", "--spi-x509cert-lookup-haproxy-trust-proxy-verification=true", "--hostname-admin-url=http://localhost:8000", "--log-level=INFO" ]

ports:
- containerPort: 8080
Expand Down
21 changes: 21 additions & 0 deletions docker-clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

docker compose down
docker container prune -f
docker image prune -f
docker volume prune -f
docker builder prune --all --force
IMAGES=$(docker images -q)

for image in $IMAGES
do
docker image rm -f $image
done
VOLUMES=$(docker volume ls -q)
for volume in $VOLUMES
do
docker volume rm $volume
done
docker container ls
docker volume ls
docker image ls

0 comments on commit 4c3100d

Please sign in to comment.