Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Loading status checks…
Merge pull request #15 from docker/1.13.2
merge 1.13.2
Showing
2 changed files
with
53 additions
and
52 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 |
---|---|---|
@@ -1,52 +1,52 @@ | ||
FROM alpine:3.7 as bootstrap | ||
|
||
ARG version=1.12.0 | ||
|
||
COPY bootstrapfiles/shibui-${version}.war.sha256sum . | ||
|
||
RUN wget https://github.internet2.edu/TIER/shib-idp-ui/releases/download/v${version}/shibui-${version}.war \ | ||
&& sha256sum -c shibui-${version}.war.sha256sum && mv shibui-${version}.war shibui.war | ||
|
||
FROM centos:7 | ||
|
||
# beacon env | ||
ENV VERSION=${version} \ | ||
TIERVERSION=20200210 \ | ||
IMAGE=shibboleth_idp_ui \ | ||
MAINTAINER=InCommon | ||
|
||
# Install Corretto Java JDK | ||
#Corretto download page: https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html | ||
ARG CORRETTO_URL_PERM=https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.rpm | ||
ARG CORRETTO_RPM=amazon-corretto-11-x64-linux-jdk.rpm | ||
COPY containerfiles/corretto-signing-key.pub . | ||
RUN curl -O -L $CORRETTO_URL_PERM \ | ||
&& rpm --import corretto-signing-key.pub \ | ||
&& rpm -K $CORRETTO_RPM \ | ||
&& rpm -i $CORRETTO_RPM \ | ||
&& rm -r corretto-signing-key.pub $CORRETTO_RPM | ||
ENV JAVA_HOME=/usr/lib/jvm/java-1.11.0-amazon-corretto | ||
|
||
RUN yum -q -qy update \ | ||
&& yum -qy install --setopt=tsflags=nodocs epel-release \ | ||
&& yum -qy install curl cronie supervisor \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum | ||
|
||
RUN mkdir -p /opt/shibui | ||
COPY --from=bootstrap shibui.war /opt/shibui/ | ||
|
||
COPY containerfiles/supervisord.conf /etc/supervisor/supervisord.conf | ||
COPY containerfiles/users.txt /opt/shibui | ||
|
||
# TIER Beacon Opt-out | ||
# Completely uncomment the following ENV line to prevent the containers from sending analytics information to Internet2. | ||
# With the default/release configuration, it will only send product (Shibb/Grouper/COmanage) and version (3.3.1-17040, etc) | ||
# once daily between midnight and 4am. There is no configuration or private information collected or sent. | ||
# This data helps with the scalaing and funding of TIER. Please do not disable it if you find the TIER tools useful. | ||
# To keep it commented, keep multiple comments on the following line (to prevent other scripts from processing it). | ||
##### ENV TIER_BEACON_OPT_OUT True | ||
|
||
WORKDIR /opt/shibui | ||
|
||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] | ||
FROM alpine:3.7 as bootstrap | ||
|
||
ARG version=1.13.2 | ||
|
||
COPY bootstrapfiles/shibui-${version}.war.sha256sum . | ||
|
||
RUN wget https://github.internet2.edu/TIER/shib-idp-ui/releases/download/v${version}/shibui-${version}.war \ | ||
&& sha256sum -c shibui-${version}.war.sha256sum && mv shibui-${version}.war shibui.war | ||
|
||
FROM centos:7 | ||
|
||
# beacon env | ||
ENV VERSION=${version} \ | ||
TIERVERSION=20200210 \ | ||
IMAGE=shibboleth_idp_ui \ | ||
MAINTAINER=InCommon | ||
|
||
# Install Corretto Java JDK | ||
#Corretto download page: https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html | ||
ARG CORRETTO_URL_PERM=https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.rpm | ||
ARG CORRETTO_RPM=amazon-corretto-11-x64-linux-jdk.rpm | ||
COPY containerfiles/corretto-signing-key.pub . | ||
RUN curl -O -L $CORRETTO_URL_PERM \ | ||
&& rpm --import corretto-signing-key.pub \ | ||
&& rpm -K $CORRETTO_RPM \ | ||
&& rpm -i $CORRETTO_RPM \ | ||
&& rm -r corretto-signing-key.pub $CORRETTO_RPM | ||
ENV JAVA_HOME=/usr/lib/jvm/java-1.11.0-amazon-corretto | ||
|
||
RUN yum -q -qy update \ | ||
&& yum -qy install --setopt=tsflags=nodocs epel-release \ | ||
&& yum -qy install curl cronie supervisor \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum | ||
|
||
RUN mkdir -p /opt/shibui | ||
COPY --from=bootstrap shibui.war /opt/shibui/ | ||
|
||
COPY containerfiles/supervisord.conf /etc/supervisor/supervisord.conf | ||
COPY containerfiles/users.txt /opt/shibui | ||
|
||
# TIER Beacon Opt-out | ||
# Completely uncomment the following ENV line to prevent the containers from sending analytics information to Internet2. | ||
# With the default/release configuration, it will only send product (Shibb/Grouper/COmanage) and version (3.3.1-17040, etc) | ||
# once daily between midnight and 4am. There is no configuration or private information collected or sent. | ||
# This data helps with the scalaing and funding of TIER. Please do not disable it if you find the TIER tools useful. | ||
# To keep it commented, keep multiple comments on the following line (to prevent other scripts from processing it). | ||
##### ENV TIER_BEACON_OPT_OUT True | ||
|
||
WORKDIR /opt/shibui | ||
|
||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] |
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 @@ | ||
9a905309f658757d9fee25a4d752b5b1db5f9fcb478a97ae273bb7a8e6fc41e6 shibui-1.13.2.war |