discord provider fork
Some checks are pending
docker / build-docker (linux/amd64) (push) Waiting to run
docker / build-docker (linux/arm64) (push) Waiting to run

This commit is contained in:
royalcat 2024-07-26 13:32:52 +03:00
parent 063f3287b3
commit 9315deda05
3 changed files with 23 additions and 4 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "providers/keycloak"]
path = providers/keycloak
url = https://github.com/andythorne/keycloak-discord

View file

@ -1,6 +1,18 @@
ARG KC_VERSION=25.0.0 ARG KC_VERSION=25.0
FROM quay.io/keycloak/keycloak:${KC_VERSION} as builder # Discord provider build
FROM maven:3.9.8-eclipse-temurin-17 AS discord_builder
RUN mkdir /keycloak-discord
WORKDIR /keycloak-discord
COPY providers/keycloak/pom.xml .
COPY providers/keycloak/src .
RUN mvn package
# Keycloak build
FROM quay.io/keycloak/keycloak:${KC_VERSION} AS builder
ENV KC_HEALTH_ENABLED=true ENV KC_HEALTH_ENABLED=true
ENV KC_METRICS_ENABLED=true ENV KC_METRICS_ENABLED=true
@ -10,8 +22,11 @@ ENV KC_FEATURES_DISABLED=kerberos,ciba,fips
ENV KC_CACHE=local ENV KC_CACHE=local
ENV KC_PROXY=edge ENV KC_PROXY=edge
ADD --chown=keycloak:keycloak --chmod=644 \ # ADD --chown=keycloak:keycloak --chmod=644 \
https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \ # 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 \
/opt/keycloak/providers/discord.jar /opt/keycloak/providers/discord.jar
WORKDIR /opt/keycloak WORKDIR /opt/keycloak

1
providers/keycloak Submodule

@ -0,0 +1 @@
Subproject commit af9e5623f74b71530b1f6b9877faf0d50b50f8d2