This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
forked from UniconLabs/cas4-services-management-overlay
-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project created by Apereo CAS Initializr
- Loading branch information
cas-initializr
authored and
runner
committed
Aug 7, 2024
0 parents
commit 6da5bf3
Showing
35 changed files
with
1,755 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
target/** | ||
build/** | ||
bin/** | ||
.idea/** | ||
.history/** | ||
.github/** | ||
.git/** |
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,6 @@ | ||
# Set line endings to LF, even on Windows. Otherwise, execution within Docker fails. | ||
# See https://help.github.com/articles/dealing-with-line-endings/ | ||
*.sh text eol=lf | ||
gradlew text eol=lf | ||
*.cmd text eol=crlf | ||
*.bat text eol=crlf |
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,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gradle | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 |
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 @@ | ||
{ | ||
"extends": [ | ||
"config:base", | ||
":preserveSemverRanges", | ||
":rebaseStalePrs", | ||
":disableRateLimiting", | ||
":semanticCommits", | ||
":semanticCommitTypeAll(renovatebot)" | ||
], | ||
"labels": ["dependencies", "bot"] | ||
} |
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,35 @@ | ||
name: Build | ||
|
||
env: | ||
JAVA_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC" | ||
GRADLE_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC" | ||
TERM: xterm-256color | ||
|
||
on: | ||
push: | ||
branches: [ 7.0 ] | ||
pull_request: | ||
branches: [ 7.0 ] | ||
|
||
concurrency: | ||
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}" | ||
cancel-in-progress: ${{ github.event_name == 'push' }} | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
jdk: [ 21 ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ matrix.jdk }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.jdk }} | ||
distribution: 'corretto' | ||
- name: Build with JDK ${{ matrix.jdk }} on ${{ matrix.os }} | ||
run: ./gradlew build | ||
|
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,49 @@ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
.classpath | ||
!/.project | ||
.project | ||
.settings | ||
.history | ||
.vscode | ||
target/ | ||
.idea/ | ||
.DS_Store | ||
.idea | ||
overlays/ | ||
.gradle/ | ||
build/ | ||
log/ | ||
bin/ | ||
*.war | ||
*.iml | ||
*.log | ||
tmp/ | ||
./apache-tomcat | ||
apache-tomcat.zip | ||
config-metadata.properties | ||
node-modules | ||
package-lock.json |
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 @@ | ||
21.0 |
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 @@ | ||
java=21 |
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,84 @@ | ||
ARG BASE_IMAGE="azul/zulu-openjdk:21" | ||
|
||
FROM $BASE_IMAGE AS overlay | ||
|
||
ARG EXT_BUILD_COMMANDS="" | ||
ARG EXT_BUILD_OPTIONS="" | ||
|
||
RUN mkdir -p cas-overlay | ||
COPY ./src cas-overlay/src/ | ||
COPY ./gradle/ cas-overlay/gradle/ | ||
COPY ./gradlew ./settings.gradle ./build.gradle ./gradle.properties ./lombok.config /cas-overlay/ | ||
|
||
RUN mkdir -p ~/.gradle \ | ||
&& echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties \ | ||
&& echo "org.gradle.configureondemand=true" >> ~/.gradle/gradle.properties \ | ||
&& cd cas-overlay \ | ||
&& chmod 750 ./gradlew \ | ||
&& ./gradlew --version; | ||
|
||
RUN cd cas-overlay \ | ||
&& ./gradlew clean build $EXT_BUILD_COMMANDS --parallel --no-daemon $EXT_BUILD_OPTIONS; | ||
|
||
FROM $BASE_IMAGE AS cas | ||
|
||
LABEL "Organization"="Apereo" | ||
LABEL "Description"="Apereo CAS" | ||
|
||
RUN cd / \ | ||
&& mkdir -p /etc/cas/config \ | ||
&& mkdir -p /etc/cas/services \ | ||
&& mkdir -p /etc/cas/saml \ | ||
&& mkdir -p cas-overlay; | ||
|
||
COPY --from=overlay cas-overlay/build/libs/cas.war cas-overlay/ | ||
COPY etc/cas/ /etc/cas/ | ||
COPY etc/cas/config/ /etc/cas/config/ | ||
COPY etc/cas/services/ /etc/cas/services/ | ||
COPY etc/cas/saml/ /etc/cas/saml/ | ||
|
||
EXPOSE 8080 8443 | ||
|
||
ENV PATH $PATH:$JAVA_HOME/bin:. | ||
|
||
WORKDIR cas-overlay | ||
ENTRYPOINT ["java", "-server", "-noverify", "-Xmx2048M", "-jar", "cas.war"] | ||
FROM azul/zulu-openjdk:21 AS management-overlay | ||
|
||
RUN mkdir -p cas-management-overlay | ||
#COPY ./src cas-management-overlay/src/ | ||
COPY ./gradle/ cas-management-overlay/gradle/ | ||
COPY ./gradlew ./settings.gradle ./build.gradle ./gradle.properties /cas-management-overlay/ | ||
|
||
RUN mkdir -p ~/.gradle \ | ||
&& echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties \ | ||
&& echo "org.gradle.configureondemand=true" >> ~/.gradle/gradle.properties \ | ||
&& cd cas-management-overlay \ | ||
&& chmod 750 ./gradlew \ | ||
&& ./gradlew --version; | ||
|
||
RUN cd cas-management-overlay \ | ||
&& ./gradlew clean build --parallel --no-daemon; | ||
|
||
|
||
FROM azul/zulu-openjdk:21 AS cas-management | ||
|
||
LABEL "Organization"="Apereo" | ||
LABEL "Description"="Apereo CAS Management" | ||
|
||
RUN cd / \ | ||
&& mkdir -p /etc/cas/config \ | ||
&& mkdir -p /etc/cas/services \ | ||
&& mkdir -p cas-management-overlay; | ||
|
||
COPY --from=management-overlay cas-management-overlay/build/libs/cas-management.war cas-management-overlay/ | ||
COPY etc/cas/ /etc/cas/ | ||
COPY etc/cas/config/ /etc/cas/config/ | ||
#COPY etc/cas/services/ /etc/cas/services/ | ||
|
||
EXPOSE 8080 8443 | ||
|
||
ENV PATH $PATH:$JAVA_HOME/bin:. | ||
|
||
WORKDIR cas-management-overlay | ||
ENTRYPOINT ["java", "-server", "-noverify", "-Xmx2048M", "-jar", "cas-management.war"] |
Oops, something went wrong.