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…
4.1.5
- 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.15.8
Showing
2 changed files
with
61 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
FROM i2incommon/grouper:4.1.5 as grouperContainer | ||
|
||
FROM centos:centos7 | ||
|
||
COPY --from=grouperContainer /opt /opt | ||
COPY --from=grouperContainer /usr/local/bin /usr/local/bin | ||
|
||
|
||
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=4.1.5 \ | ||
GROUPER_CONTAINER_VERSION=4.1.5 \ | ||
JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto \ | ||
PATH=$PATH:$JAVA_HOME/bin \ | ||
GROUPER_HOME=/opt/grouper/grouperWebapp/WEB-INF | ||
|
||
# net-tools curl mlocate strace telnet man vim rsyslog cron httpd mod_ssl cronie | ||
|
||
RUN rm -fr /var/cache/yum/* && yum clean all && yum -y install --setopt=tsflags=nodocs epel-release \ | ||
&& yum update -y \ | ||
&& yum install -y logrotate python3-pip rsync sudo patch supervisor wget tar unzip dos2unix file net-tools curl mlocate logrotate strace telnet man vim rsyslog cronie httpd mod_ssl findutils \ | ||
&& pip3 install --upgrade setuptools \ | ||
&& yum clean -y all \ | ||
&& groupadd -r tomcat \ | ||
&& useradd -r -m -s /sbin/nologin -g tomcat tomcat | ||
|
||
# Install Corretto Java JDK | ||
#Corretto download page: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/downloads-list.html | ||
|
||
# Install Corretto Java JDK (newer more arch independent way) | ||
RUN rpm --import https://yum.corretto.aws/corretto.key \ | ||
&& curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo \ | ||
&& yum install -y java-17-amazon-corretto-devel | ||
|
||
RUN /opt/container_files/docker-build-bin/containerDockerfileInstallPermissions.sh tomcat root | ||
|
||
# testing container | ||
# docker build -f Dockerfile_centos -t mygrouper | ||
# see output with | ||
# DOCKER_BUILDKIT=0 docker build --progress=plain -t mygrouper . | ||
# docker run --detach --name mygrouper mygrouper:latest | ||
# docker exec -it mygrouper bash | ||
# docker run --detach -e GROUPER_SELF_SIGNED_CERT=true -e GROUPER_MAX_MEMORY='3g' -e GROUPER_RUN_SHIB_SP=false -e GROUPERSYSTEM_QUICKSTART_PASS=pass -e GROUPER_UI_GROUPER_AUTH=true -e GROUPER_DATABASE_URL=jdbc:postgresql://host.docker.internal:5433/grouper -e GROUPER_DATABASE_USERNAME=grouper -e GROUPER_DATABASE_PASSWORD=pass -e GROUPER_AUTO_DDL_UPTOVERSION='v4.*.*' -e GROUPER_UI_CONFIGURATION_EDITOR_SOURCEIPADDRESSES='0.0.0.0/0' -e GROUPER_START_DELAY_SECONDS=10 --publish 8081:8080 -e GROUPER_RUN_APACHE=false --name mygrouper mygrouper:latest ui | ||
|
||
|
||
|
||
WORKDIR /opt/grouper/grouperWebapp/WEB-INF/ | ||
EXPOSE 80 443 | ||
HEALTHCHECK NONE | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
#ENTRYPOINT ["ping"] | ||
#CMD ["google.com"] |