-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD Docker build images, test, release (#25)
* ADD Docker build images, test, release * snappy exclude linux/arm64/8
- Loading branch information
Showing
6 changed files
with
261 additions
and
14 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
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
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,34 @@ | ||
FROM eclipse-temurin:8-jre-jammy | ||
|
||
MAINTAINER Open Identity Platform Community <[email protected]> | ||
|
||
ENV USER="openidm" | ||
ENV OPENIDM_OPTS="-server -XX:+UseContainerSupport -Dlogback.configurationFile=conf/logging-config.groovy" | ||
ENV OPENIDM_PASSWORD="openidm-admin" | ||
|
||
ARG VERSION | ||
|
||
WORKDIR /opt | ||
|
||
#COPY openidm-zip/target/openidm-*.zip ./ | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends curl unzip | ||
RUN if [ ! -z "$VERSION" ] ; then rm -rf ./*.zip ; curl -L https://github.com/OpenIdentityPlatform/OpenIDM/releases/download/$VERSION/openidm-$VERSION.zip --output openidm-$VERSION.zip ; fi | ||
RUN unzip openidm-*.zip && rm -rf *.zip | ||
RUN apt-get remove -y --purge unzip | ||
RUN rm -rf /var/lib/apt/lists/* | ||
RUN groupadd $USER | ||
RUN useradd -m -r -u 1001 -g $USER $USER | ||
RUN install -d -o $USER /opt/openidm | ||
RUN chown -R $USER:$USER /opt/openidm | ||
RUN chmod -R g=u /opt/openidm | ||
RUN chmod +x /opt/openidm/*.sh | ||
|
||
EXPOSE 8080 | ||
|
||
USER $USER | ||
|
||
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 CMD curl -i -o - --silent --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: $OPENIDM_PASSWORD" http://127.0.0.1:8080/openidm/info/ping | grep -q "\"ACTIVE_READY\"" | ||
|
||
ENTRYPOINT ["/opt/openidm/startup.sh"] |
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,35 @@ | ||
FROM openjdk:8-jre-alpine | ||
|
||
MAINTAINER Open Identity Platform Community <[email protected]> | ||
|
||
ENV USER="openidm" | ||
ENV OPENIDM_OPTS="-server -XX:+UseContainerSupport -Dlogback.configurationFile=conf/logging-config.groovy" | ||
ENV OPENIDM_PASSWORD="openidm-admin" | ||
|
||
ARG VERSION | ||
|
||
WORKDIR /opt | ||
|
||
#COPY openidm-zip/target/openidm-*.zip ./ | ||
|
||
RUN apk add --update --no-cache --virtual builddeps curl unzip | ||
RUN apk upgrade --update --no-cache | ||
RUN apk add bash | ||
RUN apk update && apk add java-snappy && apk add gcompat | ||
RUN if [ ! -z "$VERSION" ] ; then rm -rf ./*.zip ; curl -L https://github.com/OpenIdentityPlatform/OpenIDM/releases/download/$VERSION/openidm-$VERSION.zip --output openidm-$VERSION.zip ; fi | ||
RUN unzip openidm-*.zip && rm -rf *.zip | ||
RUN apk del unzip | ||
RUN addgroup -S $USER | ||
RUN adduser -S -u 1001 -G $USER $USER | ||
RUN install -d -o $USER /opt/openidm | ||
RUN chown -R $USER:$USER /opt/openidm | ||
RUN chmod -R g=u /opt/openidm | ||
RUN chmod +x /opt/openidm/*.sh | ||
|
||
EXPOSE 8080 | ||
|
||
USER $USER | ||
|
||
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 CMD curl -i -o - --silent --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: $OPENIDM_PASSWORD" http://127.0.0.1:8080/openidm/info/ping | grep -q "\"ACTIVE_READY\"" | ||
|
||
ENTRYPOINT ["/opt/openidm/startup.sh"] |
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
This file was deleted.
Oops, something went wrong.