forked from cerc-io/stack-orchestrator
Keycloak + nginx reverse proxy (#63)
* Example Keycloak config. * Proxy for geth, ipld-eth-server, and lighthouse. * Add metrics.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
FROM maven:3-eclipse-temurin-11-alpine AS builder
|
||||
RUN apk add --update --no-cache git
|
||||
WORKDIR /build
|
||||
RUN git clone https://github.com/cerc-io/keycloak-api-key-demo.git && \
|
||||
cd keycloak-api-key-demo && \
|
||||
git checkout '60c48b5c3e562c6cf2c85cfdd8f08145b0ebac5a' && \
|
||||
mvn -f api-key-module package
|
||||
|
||||
FROM quay.io/keycloak/keycloak:20.0
|
||||
COPY --from=builder /build/keycloak-api-key-demo//api-key-module/target/deploy/* /opt/keycloak/providers/
|
||||
WORKDIR /opt/keycloak/providers
|
||||
RUN curl -L https://github.com/aerogear/keycloak-metrics-spi/releases/download/2.5.3/keycloak-metrics-spi-2.5.3.jar --output keycloak-metrics-spi.jar
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
#Build cerc/keycloack
|
||||
|
||||
# See: https://stackoverflow.com/a/246128/1701505
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
docker build -t cerc/keycloak:local ${SCRIPT_DIR}
|
||||
Reference in New Issue
Block a user