diff --git a/Dockerfile b/Dockerfile index 8e8ebc6..3668e1b 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,37 +1,35 @@ -FROM alpine:3.7 as bootstrap +FROM rockylinux/rockylinux:8.10 -ARG version=1.18.0 +ARG version=2.0.5 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 +#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 yum -qy install --setopt=tsflags=nodocs epel-release \ + && yum install -qy curl supervisor wget -FROM centos:7 +RUN mkdir -p /opt/shibui +RUN wget https://github.internet2.edu/TIER/shib-idp-ui/releases/download/v${version}/shibui-${version}.war +RUN sha256sum -c shibui-${version}.war.sha256sum && mv shibui-${version}.war /opt/shibui/shibui.war # beacon env -ENV TIERVERSION=PACKAGE_1.18.0 +ENV TIERVERSION=MCM_2.0.5 # 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 +ARG CORRETTO_URL_PERM=https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.rpm +ARG CORRETTO_RPM=amazon-corretto-17-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/ +ENV JAVA_HOME=/usr/lib/jvm/java-1.17.0-amazon-corretto COPY containerfiles/supervisord.conf /etc/supervisor/supervisord.conf COPY containerfiles/users.txt /opt/shibui diff --git a/bootstrapfiles/shibui-2.0.0.war.sha256sum b/bootstrapfiles/shibui-2.0.0.war.sha256sum new file mode 100644 index 0000000..07baa0f --- /dev/null +++ b/bootstrapfiles/shibui-2.0.0.war.sha256sum @@ -0,0 +1 @@ +ce537fe9ab834d6efafe6be3413a98a2ec4cafb5634634f71b01f9c86fd29ebf shibui-2.0.0.war \ No newline at end of file diff --git a/bootstrapfiles/shibui-2.0.1.war.sha256sum b/bootstrapfiles/shibui-2.0.1.war.sha256sum new file mode 100644 index 0000000..f194000 --- /dev/null +++ b/bootstrapfiles/shibui-2.0.1.war.sha256sum @@ -0,0 +1 @@ +506003514a20c33db7654c17389f0fc7ff3e1e6a4192980761b17a4f24a6f38c shibui-2.0.1.war \ No newline at end of file diff --git a/bootstrapfiles/shibui-2.0.4.war.sha256sum b/bootstrapfiles/shibui-2.0.4.war.sha256sum new file mode 100644 index 0000000..3667da1 --- /dev/null +++ b/bootstrapfiles/shibui-2.0.4.war.sha256sum @@ -0,0 +1 @@ +308dbceb044978d5c8989a9bfa9c83a30e52b4113756ce8b32f50622e66b8a79 shibui-2.0.4.war \ No newline at end of file diff --git a/bootstrapfiles/shibui-2.0.5.war.sha256sum b/bootstrapfiles/shibui-2.0.5.war.sha256sum new file mode 100644 index 0000000..bc00979 --- /dev/null +++ b/bootstrapfiles/shibui-2.0.5.war.sha256sum @@ -0,0 +1 @@ +006a6da1afb958bc572115e63e31cc0b0bae2eb80d1a33d9862277cfcad6daba shibui-2.0.5.war \ No newline at end of file