Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Dockers
Browse files Browse the repository at this point in the history
  • Loading branch information
sse committed Jan 20, 2021
1 parent 31e5444 commit 6ffb1e9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
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/
13 changes: 13 additions & 0 deletions docker-compose.yml
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

0 comments on commit 6ffb1e9

Please sign in to comment.