This commit is contained in:
parent
a1dbdeae0d
commit
b163882639
3 changed files with 3 additions and 18 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "providers/keycloak"]
|
|
||||||
path = providers/keycloak
|
|
||||||
url = https://github.com/andythorne/keycloak-discord
|
|
17
Dockerfile
17
Dockerfile
|
@ -1,14 +1,9 @@
|
||||||
ARG KC_VERSION=25.0
|
ARG KC_VERSION=25.0
|
||||||
|
|
||||||
# Discord provider build
|
# Discord provider build
|
||||||
FROM --platform=$BUILDPLATFORM maven:3.9.8-eclipse-temurin-17 AS discord_builder
|
FROM --platform=$BUILDPLATFORM maven:3-openjdk-17 AS discord_builder
|
||||||
|
RUN git clone https://github.com/andythorne/keycloak-discord --branch fix-keycloak-25 --depth 1 /keycloak-discord
|
||||||
RUN mkdir /keycloak-discord
|
|
||||||
WORKDIR /keycloak-discord
|
WORKDIR /keycloak-discord
|
||||||
|
|
||||||
|
|
||||||
COPY providers/keycloak/pom.xml .
|
|
||||||
COPY providers/keycloak/src .
|
|
||||||
RUN mvn package
|
RUN mvn package
|
||||||
|
|
||||||
# Keycloak build
|
# Keycloak build
|
||||||
|
@ -23,10 +18,7 @@ ENV KC_CACHE=local
|
||||||
ENV KC_HTTP_ENABLED=true
|
ENV KC_HTTP_ENABLED=true
|
||||||
ENV KC_PROXY_HEADERS=xforwarded
|
ENV KC_PROXY_HEADERS=xforwarded
|
||||||
|
|
||||||
# ADD --chown=keycloak:keycloak --chmod=644 \
|
COPY --from=discord_builder \
|
||||||
# https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \
|
|
||||||
# /opt/keycloak/providers/discord.jar
|
|
||||||
COPY --from=discord_builder --chown=keycloak:keycloak --chmod=644 \
|
|
||||||
/keycloak-discord/target/keycloak-discord-0.5.1-SNAPSHOT.jar \
|
/keycloak-discord/target/keycloak-discord-0.5.1-SNAPSHOT.jar \
|
||||||
/opt/keycloak/providers/discord.jar
|
/opt/keycloak/providers/discord.jar
|
||||||
WORKDIR /opt/keycloak
|
WORKDIR /opt/keycloak
|
||||||
|
@ -34,7 +26,4 @@ RUN /opt/keycloak/bin/kc.sh build
|
||||||
|
|
||||||
FROM quay.io/keycloak/keycloak:${KC_VERSION}
|
FROM quay.io/keycloak/keycloak:${KC_VERSION}
|
||||||
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
||||||
COPY --from=discord_builder --chown=keycloak:keycloak --chmod=644 \
|
|
||||||
/keycloak-discord/target/keycloak-discord-0.5.1-SNAPSHOT.jar \
|
|
||||||
/opt/keycloak/providers/discord.jar
|
|
||||||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
|
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit af9e5623f74b71530b1f6b9877faf0d50b50f8d2
|
|
Loading…
Reference in a new issue