Skip to content

Commit f1bf0f1

Browse files
committed
fix test cas 6
1 parent dc25194 commit f1bf0f1

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

Dockerfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1-
ARG BASE_IMAGE="azul/zulu-openjdk:21"
1+
ARG BASE_IMAGE="eclipse-temurin:11-jdk"
22
ARG EXT_BUILD_COMMANDS=""
33
ARG EXT_BUILD_OPTIONS=""
44

55
FROM $BASE_IMAGE as overlay
6+
ENV CAS_BRANCH_VERSION=6.6
67

7-
RUN cd /tmp && \
8-
apt-get update && \
9-
apt-get install -y git && \
10-
git clone -b master --single-branch https://github.com/apereo/cas-overlay-template.git cas-overlay
8+
RUN apt-get update && \
9+
apt-get install -y git
10+
11+
RUN git clone --branch $CAS_BRANCH_VERSION --single-branch https://github.com/apereo/cas-overlay-template.git /tmp/cas-overlay
1112

1213
WORKDIR /tmp/cas-overlay
1314

1415
COPY src/ /tmp/cas-overlay/src/
1516

1617
RUN ./gradlew clean build $EXT_BUILD_COMMANDS --parallel --no-daemon $EXT_BUILD_OPTIONS
1718

19+
RUN ls -la /tmp/cas-overlay/build/libs/cas.war
20+
21+
RUN apt-get clean && \
22+
rm -rf /var/lib/apt/lists/* /var/tmp/*
23+
1824
FROM $BASE_IMAGE as cas
1925

2026
RUN mkdir -p /etc/cas && \

rootfs/etc/cas/config/cas.properties

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ server.connectionTimeout=20000
2626
cas.server.name=https://host.docker.internal:8443
2727
cas.server.prefix=https://host.docker.internal:8443/cas
2828

29+
cas.server.tomcat.httpProxy.httpServerUrl=http://host.docker.internal:8080/cas
30+
2931
#
3032
#
3133
#logging.config=file:/etc/cas/config/log4j2.xml
32-
; cas.serviceRegistry.initFromJson=true
33-
cas.service-registry.json.location=file:/etc/cas/services
34+
cas.serviceRegistry.initFromJson=true
35+
cas.serviceRegistry.watcherEnabled=true
36+
cas.serviceRegistry.config.location=file:/etc/cas/services
37+
38+
; cas.tgc.crypto.encryption.key=qGebWKYNzc7rAG0oBVIKRYm9cuGWTvV1netD6BZIG5c
39+
; cas.tgc.crypto.signing.key=WqgVPoWLLcGLLB-e_sD-4UjUybsrJOrtjt8RZvHx2XqkfesKaogbPNf3dafTKpgFNfwgUg40b6ujxydHJTtGLQ
3440

3541
; cas.proxyPolicy.allowedToProxy=true
3642

rootfs/etc/cas/services/wiki-1686237855.json renamed to wiki-1686237855.json

File renamed without changes.

0 commit comments

Comments
 (0)