Commit 339888ee authored by Misagh Moayyed's avatar Misagh Moayyed

Merge branches 'master' and 'master' of

parents c73c4d5f 9611bf66
# Set line endings to LF, even on Windows. Otherwise, execution within Docker fails.
# See
*.sh text eol=lf
*.cmd text eol=crlf
\ No newline at end of file
......@@ -5,6 +5,7 @@
@set CONFIG_DIR=\etc\cas\config
@set SHELL_DIR=build\libs
@set BUILD_DIR=build\libs
@set DOCKER_ORG=org.apereo.cas
@if "%PROFILES%" == "" @set PROFILES=standalone
@rem Call this script with DNAME and CERT_SUBJ_ALT_NAMES already set to override
......@@ -34,6 +35,10 @@
@if "%1" == "cli" call:cli
@if "%1" == "debugcli" call:debugcli
@if "%1" == "dependencies" call:dependencies
@if "%1" == "dockerimage" call:dockerimage
@if "%1" == "dockerrun" call:dockerrun
@if "%1" == "dockerrunsh" call:dockerrunsh
@if "%1" == "dockerexecsh" call:dockerexecsh
@rem function section starts here
@goto :EOF
......@@ -47,7 +52,7 @@
@goto :EOF
@echo "Usage: build.cmd [copy|clean|package|refresh|run|debug|gencert] [optional extra args for gradle]"
@echo "Usage: build.cmd [copy|clean|package|refresh|run|debug|gencert|dockerimage|dockerrunsh|dockerexecsh] [optional extra args for gradle]"
@echo "To get started on a clean system, run 'build.cmd gencert && build.cmd copy && build.cmd run'"
@echo "Note that using the copy or gencert arguments will create and/or overwrite the %CAS_DIR% which is outside this project"
@goto :EOF
......@@ -74,6 +79,27 @@
call:package --refresh-dependencies %1 %2
@goto :EOF
call %GRADLE_CMD% clean build jibDockerBuild
@goto :EOF
docker stop cas
docker rm cas
docker run --name cas %DOCKER_ORG%/cas:latest
@goto :EOF
@rem run image to look around, delete container on exit
docker run --rm -it --entrypoint /bin/sh %DOCKER_ORG%/cas:latest
@goto :EOF
@rem exec into runing container to look around, run jstack, check config, etc
docker exec -it cas /bin/sh
@goto :EOF
where /q keytool
......@@ -95,7 +95,7 @@ dependencies {
jib {
from {
image = "adoptopenjdk/openjdk11:jdk11-alpine-nightly-slim"
image = project.baseDockerImage
to {
image = "${}/${}"
......@@ -14,3 +14,7 @@ targetCompatibility=11
# Location of the downloaded CAS shell JAR
# use without "-slim" in tag name if you want tools like jstack, adds about 100MB to image size
# (
\ No newline at end of file
......@@ -19,4 +19,4 @@ mv docker/cas/services/*.* /etc/cas/services 2>/dev/null
#ls -R /etc/cas
echo -e "\nRunning CAS..."
java -Xms512m -Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -jar docker/cas/war/cas.war
exec java -Xms512m -Xmx2048M -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -jar docker/cas/war/cas.war
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment