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…
2.6.16
- 2.6.16
- 2.6.16.1
- 2.6.16.2
- 2.6.16.2-rocky-multi-arch-test
- 2.6.16.3
- 2.6.17
- 2.6.17.1
- 2.6.17.2
- 2.6.18
- 2.6.18.1
- 2.6.19
- 2.6.19.1
- 2.6.19.3
- 2.6.20
- 4.0.0
- 4.0.0-rocky8-multiarch
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.1.0
- 4.1.1
- 4.1.2
- 4.1.3
- 4.1.4
- 4.1.5
- 4.1.6
- 4.1.7
- 4.10.0
- 4.10.1
- 4.10.2
- 4.10.3
- 4.10.4
- 4.11.0
- 4.11.1
- 4.11.2
- 4.11.3
- 4.12.0
- 4.12.1
- 4.13.0
- 4.13.1
- 4.14.0
- 4.14.1
- 4.14.2
- 4.15.0
- 4.15.1
- 4.15.3
- 4.15.4
- 4.15.5
- 4.15.6
- 4.15.7
- 4.15.8
- 4.16.0
- 4.17.0
- 4.17.1
- 4.17.3
- 4.17.4
- 4.17.5
- 4.17.6
- 4.2.0
- 4.2.1
- 4.2.2
- 4.3.0
- 4.3.1
- 4.3.2
- 4.4.0
- 4.4.1
- 4.5.0
- 4.5.1
- 4.5.2
- 4.5.3
- 4.5.4
- 4.5.5
- 4.6.0
- 4.7.0
- 4.7.1
- 4.7.2
- 4.8.0
- 4.9.0
- 4.9.1
- 4.9.2
- 4.9.3
- 4.9.4
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.1.0
- 5.10.0
- 5.10.1
- 5.10.2
- 5.11.0
- 5.11.1
- 5.11.2
- 5.11.3
- 5.12.0
- 5.12.1
- 5.12.2
- 5.13.0
- 5.13.1
- 5.13.2
- 5.13.3
- 5.13.5
- 5.14.0
- 5.14.1
- 5.15.0
- 5.15.1
- 5.15.2
- 5.15.3
- 5.15.4
- 5.15.8
- 5.16.0
- 5.17.0
- 5.17.1
- 5.2.0
- 5.2.1
- 5.3.0
- 5.3.2
- 5.3.3
- 5.3.4
- 5.4.0
- 5.5.0
- 5.6.0
- 5.7.0
- 5.7.1
- 5.8.0
- 5.8.1
- 5.8.2
- 5.8.3
- 5.8.4
- 5.8.5
- 5.8.6
- 5.8.7
- 5.9.0
- 5.9.1
- GRP-4567_java17_tomcat
- feature/grp-5135-rewrite-installer
Showing
20 changed files
with
379 additions
and
127 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 |
---|---|---|
|
@@ -8,3 +8,4 @@ bin/start.sh | |
bin/stop.sh | ||
bin/test.sh | ||
/.project | ||
**/*~ |
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,76 @@ | ||
FROM centos:centos7 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" \ | ||
Vendor="TIER" \ | ||
ImageType="Grouper" \ | ||
ImageName=$imagename \ | ||
ImageOS=centos7 | ||
|
||
ARG GROUPER_CONTAINER_VERSION | ||
|
||
ENV GROUPER_VERSION=2.6.16 \ | ||
GROUPER_CONTAINER_VERSION=$GROUPER_CONTAINER_VERSION \ | ||
JAVA_HOME=/usr/lib/jvm/java-1.8.0-amazon-corretto \ | ||
PATH=$PATH:$JAVA_HOME/bin \ | ||
GROUPER_HOME=/opt/grouper/grouperWebapp/WEB-INF | ||
|
||
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime \ | ||
&& echo "NETWORKING=yes" > /etc/sysconfig/network | ||
RUN rm -fr /var/cache/yum/* && yum clean all && yum -y install --setopt=tsflags=nodocs epel-release && yum -y update && \ | ||
yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man vim rsyslog cron httpd mod_ssl dos2unix cronie supervisor && \ | ||
yum clean all | ||
|
||
RUN yum update -y \ | ||
&& yum install -y logrotate python3-pip rsync sudo patch supervisor wget tar unzip dos2unix file \ | ||
&& pip3 install --upgrade setuptools \ | ||
&& yum clean -y all \ | ||
&& groupadd -r tomcat \ | ||
&& useradd -r -m -s /sbin/nologin -g tomcat tomcat \ | ||
&& mkdir -p /opt/container_files | ||
|
||
# Install Corretto Java JDK | ||
#Corretto download page: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html | ||
|
||
#ARG CORRETTO_URL_PERM=https://corretto.aws/downloads/latest/amazon-corretto-8-x64-linux-jdk.rpm | ||
#ARG CORRETTO_RPM=amazon-corretto-8-x64-linux-jdk.rpm | ||
ARG CORRETTO_URL_PERM=https://corretto.aws/downloads/latest/amazon-corretto-8-aarch64-linux-jdk.rpm | ||
ARG CORRETTO_RPM=amazon-corretto-8-aarch64-linux-jdk.rpm | ||
|
||
|
||
COPY container_files/docker-build-bin /opt/container_files/docker-build-bin/ | ||
COPY container_files/morphString.properties /opt/container_files/ | ||
COPY container_files/grouper.installer.properties /opt/container_files/ | ||
RUN mkdir /opt/container_files/java-corretto | ||
COPY container_files/java-corretto/corretto-signing-key.pub /opt/container_files/java-corretto | ||
COPY container_files/tier-support /opt/container_files/tier-support/ | ||
RUN cd /tmp \ | ||
&& chmod +x /opt/container_files/docker-build-bin/*.sh \ | ||
&& /opt/container_files/docker-build-bin/containerDockerfileInstallDos2unix.sh /opt/container_files \ | ||
&& /opt/container_files/docker-build-bin/containerDockerfileInstallJava.sh $CORRETTO_URL_PERM $CORRETTO_RPM $JAVA_HOME $GROUPER_VERSION \ | ||
&& /opt/container_files/docker-build-bin/containerDockerfileInstallGrouper.sh $CORRETTO_URL_PERM $CORRETTO_RPM $JAVA_HOME $GROUPER_VERSION | ||
|
||
|
||
# real copy command (if not caching), uncomment this and change comments of COPY above to work on install script | ||
COPY container_files/ /opt/container_files/ | ||
|
||
RUN cd /tmp \ | ||
&& /opt/container_files/docker-build-bin/containerDockerfileInstallDos2unix.sh /opt/container_files \ | ||
&& /opt/container_files/docker-build-bin/containerDockerfileInstall.sh $CORRETTO_URL_PERM $CORRETTO_RPM $JAVA_HOME $GROUPER_VERSION | ||
|
||
|
||
# testing container | ||
# see output with docker build . --tag my:grouper | ||
# DOCKER_BUILDKIT=0 docker build --progress=plain -t mygrouper . | ||
# docker run --detach --name mygrouper mygrouper:latest | ||
# docker exec -it mygrouper bash | ||
|
||
WORKDIR /opt/grouper/grouperWebapp/WEB-INF/ | ||
EXPOSE 80 443 | ||
HEALTHCHECK NONE | ||
|
||
#ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
|
||
# LOCAL start uncomment ping, and comment out other entrypoint to just have a simple runnable container | ||
ENTRYPOINT ["ping"] | ||
CMD ["google.com"] | ||
# LOCAL end |
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,3 @@ | ||
#!/bin/bash | ||
|
||
docker build -t my-grouper . |
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,3 @@ | ||
#!/bin/bash | ||
|
||
docker build -t my-grouper -f Dockerfile2 . |
Oops, something went wrong.