discord provider fork
This commit is contained in:
parent
063f3287b3
commit
9315deda05
3 changed files with 23 additions and 4 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "providers/keycloak"]
|
||||
path = providers/keycloak
|
||||
url = https://github.com/andythorne/keycloak-discord
|
23
Dockerfile
23
Dockerfile
|
@ -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_METRICS_ENABLED=true
|
||||
|
@ -10,8 +22,11 @@ ENV KC_FEATURES_DISABLED=kerberos,ciba,fips
|
|||
ENV KC_CACHE=local
|
||||
ENV KC_PROXY=edge
|
||||
|
||||
ADD --chown=keycloak:keycloak --chmod=644 \
|
||||
https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \
|
||||
# ADD --chown=keycloak:keycloak --chmod=644 \
|
||||
# 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
|
||||
|
||||
WORKDIR /opt/keycloak
|
||||
|
|
1
providers/keycloak
Submodule
1
providers/keycloak
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit af9e5623f74b71530b1f6b9877faf0d50b50f8d2
|
Loading…
Reference in a new issue