This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sse
committed
Jan 20, 2021
1 parent
31e5444
commit 6ffb1e9
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ARG TAG=latest | ||
|
||
FROM jboss/keycloak:${TAG} | ||
|
||
ENV BANANA_J_VERSION=0.6.3 | ||
|
||
ENV MAILCHIMP_API_KEY someApiKey | ||
ENV MAILCHIMP_API_KEY someApiKey | ||
|
||
ENV MAILCHIMP_PLUGIN_VERSION 1.0.0 | ||
|
||
LABEL maintainer="Stephane, Segning Lambou <[email protected]>" | ||
|
||
RUN mkdir $JBOSS_HOME/providers | ||
|
||
RUN curl -H "Accept: application/zip" https://github.com/bayamsell/keycloak-mailchimp/releases/download/v${MAILCHIMP_PLUGIN_VERSION}/keycloak-mailchimp-${MAILCHIMP_PLUGIN_VERSION}.jar -o $JBOSS_HOME/providers/keycloak-mailchimp-${MAILCHIMP_PLUGIN_VERSION}.jar -Li | ||
RUN curl -H "Accept: application/zip" https://github.com/bayamsell/keycloak-mailchimp/releases/download/v${MAILCHIMP_PLUGIN_VERSION}/keycloak-mailchimp-${MAILCHIMP_PLUGIN_VERSION}-jar-with-dependencies.jar -o $JBOSS_HOME/providers/keycloak-mailchimp-${MAILCHIMP_PLUGIN_VERSION}-jar-with-dependencies.jar -Li | ||
|
||
COPY ./startup.sh /opt/jboss/startup-scripts/mailchimp-startup.sh | ||
|
||
USER 0 | ||
|
||
RUN chmod +x /opt/jboss/startup-scripts/mailchimp-startup.sh | ||
|
||
USER jboss | ||
|
||
# Clean the fact that an embeded server did started | ||
RUN rm -rf $JBOSS_HOME/standalone/configuration/standalone_xml_history/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: "3.8" | ||
|
||
services: | ||
|
||
keycloak: | ||
build: . | ||
ports: | ||
- 8080:8080 | ||
environment: | ||
KEYCLOAK_USER: admin | ||
KEYCLOAK_PASSWORD: password | ||
MAILCHIMP_API_KEY: one | ||
MAILCHIMP_LIST_ID: two |