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…
allow stop/start and add options for tomcat. log things better
- 2.5.34
- 2.5.35
- 2.5.36
- 2.5.36.1
- 2.5.37
- 2.5.37.1
- 2.5.38
- 2.5.39
- 2.5.40
- 2.5.41
- 2.5.42
- 2.5.43
- 2.5.44
- 2.5.45
- 2.5.46
- 2.5.47
- 2.5.48
- 2.5.49
- 2.5.50
- 2.5.51
- 2.5.52
- 2.5.52-test-rockylinux
- 2.5.53
- 2.5.54
- 2.5.54-test-rockylinux
- 2.5.55
- 2.5.56
- 2.5.57
- 2.5.58
- 2.5.59
- 2.5.59.1
- 2.5.59.2
- 2.5.59.3
- 2.5.60
- 2.5.61
- 2.5.62
- 2.5.63
- 2.5.64
- 2.5.65
- 2.5.66
- 2.5.66.1
- 2.5.68
- 2.5.69
- 2.6.0
- 2.6.1
- 2.6.10
- 2.6.11
- 2.6.12
- 2.6.13
- 2.6.13-rocky-test
- 2.6.13-rockylinux8-test
- 2.6.14
- 2.6.14-rockylinux8-test
- 2.6.14a
- 2.6.15
- 2.6.15-rockylinux8-test
- 2.6.15.1
- 2.6.16
- 2.6.16-rocky
- 2.6.16.1
- 2.6.16.2
- 2.6.16.2-rocky
- 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.2
- 2.6.20
- 2.6.3
- 2.6.4
- 2.6.5
- 2.6.5.1
- 2.6.5.2
- 2.6.5.3
- 2.6.5.3-buildx
- 2.6.5.4
- 2.6.6
- 2.6.7
- 2.6.7.1
- 2.6.8
- 2.6.9
- 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.17.7
- 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.17.2
- 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
225 additions
and
73 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
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,26 @@ | ||
#/bin/bash | ||
|
||
if [ "$#" -ne 2 ]; then | ||
echo "You must enter exactly 2 command line arguments: grouper base container version, grouper_container_git_base_dir" | ||
echo "rebuildTestContainer.sh 2.5.33 /mnt/c/mchyzer/git/grouper_container" | ||
exit 1 | ||
fi | ||
|
||
export grouperBaseContainerVersion=$1 | ||
export grouperContainerGitPath=$2 | ||
export subimageName=my-grouper-$1 | ||
|
||
export reldir=`dirname $0` | ||
|
||
# /mnt/c/mchyzer/git/grouper_container | ||
mkdir -p $reldir/slashRoot/usr/local/bin | ||
rsync -avzpl $grouperContainerGitPath/container_files/usr-local-bin/* $reldir/slashRoot/usr/local/bin | ||
|
||
rsync -avzpl $grouperContainerGitPath/container_files/tier-support/test/grouper*.sh $reldir | ||
|
||
mkdir -p $reldir/slashRoot/opt/tomee/conf | ||
rsync -avzpl $grouperContainerGitPath/container_files/tomee/conf/* $reldir/slashRoot/opt/tomee/conf/ | ||
|
||
docker build -f $reldir/testContainer.Dockerfile -t $subimageName --build-arg GROUPER_VERSION=$grouperBaseContainerVersion $reldir | ||
|
||
echo "Run tests with: ./grouperContainerUnitTest.sh grouper-test $subimageName:latest $grouperBaseContainerVersion $grouperBaseContainerVersion" |
11 changes: 11 additions & 0 deletions
11
container_files/tier-support/test/testContainer.Dockerfile
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,11 @@ | ||
# this matches the version you decided on from release notes | ||
ARG GROUPER_VERSION=2.5.XX | ||
|
||
# --build-arg GROUPER_VERSION=${VARIABLE_NAME} | ||
FROM i2incommon/grouper:${GROUPER_VERSION} | ||
|
||
# this will overlay all the files from /opt/grouperContainer/slashRoot on to / | ||
COPY slashRoot / | ||
|
||
RUN chown -R tomcat:tomcat /opt/grouper \ | ||
&& chown -R tomcat:tomcat /opt/tomee |
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
#!/bin/bash | ||
|
||
if [[ $EUID -ne 0 ]]; then | ||
echo "This script must be run as root" | ||
echo "grouperContainer; ERROR: (changeGid.sh) This script must be run as root" | ||
exit 1 | ||
fi | ||
if [ "$#" -ne 2 ]; then | ||
echo "You must enter exactly 2 command line arguments: groupname, and gid to change to" | ||
echo "grouperContainer; ERROR: (changeGid.sh) You must enter exactly 2 command line arguments: groupname, and gid to change to" | ||
exit 1 | ||
fi | ||
groupname=$1 | ||
newGid=$2 | ||
getentOutput="$(getent group "$groupname")" | ||
oldGid="$( echo "$getentOutput" |cut -d\: -f3 )" | ||
groupmod -g "$newGid" "$groupname" | ||
find / -xdev -type d -group "$oldGid" -exec chgrp -h "$groupname" {} \; | ||
echo "grouperContainer; INFO: (changeGid.sh) groupmod -g $newGid $groupname , result: $?" | ||
find / -xdev -type d -group "$oldGid" -exec chgrp -h "$groupname" {} \; | ||
echo "grouperContainer; INFO: (changeGid.sh) find / -xdev -type d -group $oldGid -exec chgrp -h $groupname {} \; , result: $?" |
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,15 +1,17 @@ | ||
#!/bin/bash | ||
|
||
if [[ $EUID -ne 0 ]]; then | ||
echo "This script must be run as root" | ||
echo "grouperContainer; ERROR: (changeUid.sh) This script must be run as root" | ||
exit 1 | ||
fi | ||
if [ "$#" -ne 2 ]; then | ||
echo "You must enter exactly 2 command line arguments: username, and uid to change to" | ||
echo "grouperContainer; ERROR: (changeUid.sh) You must enter exactly 2 command line arguments: username, and uid to change to" | ||
exit 1 | ||
fi | ||
username=$1 | ||
newUid=$2 | ||
oldUid="$(id -u "$username")" | ||
usermod -u "$newUid" "$username" | ||
echo "grouperContainer; INFO: (changeUid.sh) usermod -u $newUid $username , result: $?" | ||
find / -xdev -type d -user "$oldUid" -exec chown -h "$username" {} \; | ||
echo "grouperContainer; INFO: (changeUid.sh) find / -xdev -type d -user $oldUid -exec chown -h $username {} \; , result: $?" |
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
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
Oops, something went wrong.