-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
211 additions
and
5,533 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,4 @@ | ||
| FROM i2incommon/grouper:4.3.0 | ||
|
|
||
| ENTRYPOINT ["ping"] | ||
| CMD ["google.com"] |
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"] |
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-grouper3 -f Dockerfile3 . |
5,137 changes: 0 additions & 5,137 deletions
5,137
container_files/grouperWebapp/WEB-INF/classes/grouper-loader.base.properties
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
| # note: get the server.xml into the original, make sure it ends with newline if the file does | ||
| diff -u server.xml.original server.xml.grouper > server.xml.grouper.patch |
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,37 @@ | ||
| --- server.xml.original 2023-06-27 13:54:24.000000000 -0400 | ||
| +++ server.xml.grouper 2023-07-03 02:37:07.000000000 -0400 | ||
| @@ -69,7 +69,7 @@ | ||
| <Connector port="8080" protocol="HTTP/1.1" | ||
| connectionTimeout="20000" | ||
| redirectPort="8443" | ||
| - maxParameterCount="1000" | ||
| + maxParameterCount="10000" | ||
| /> | ||
| <!-- A "Connector" using the shared thread pool--> | ||
| <!-- | ||
| @@ -128,7 +128,8 @@ | ||
| maxParameterCount="1000" | ||
| /> | ||
| --> | ||
| - | ||
| + <!--GROUPER_AJP_CONNECTOR--> | ||
| + | ||
| <!-- An Engine represents the entry point (within Catalina) that processes | ||
| every request. The Engine implementation for Tomcat stand alone | ||
| analyzes the HTTP headers included with the request, and passes them | ||
| @@ -166,13 +167,12 @@ | ||
| <!-- | ||
| <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> | ||
| --> | ||
| + <!--GROUPER_REMOTE_CIDR_VALVE--> | ||
|
|
||
| <!-- Access log processes all example. | ||
| Documentation at: /docs/config/valve.html | ||
| Note: The pattern used is equivalent to using pattern="common" --> | ||
| - <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" | ||
| - prefix="localhost_access_log" suffix=".txt" | ||
| - pattern="%h %l %u %t "%r" %s %b" /> | ||
| + <!--GROUPER_LOGGING_VALVE--> | ||
|
|
||
| </Host> | ||
| </Engine> |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.