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 9, 2023
0 parents
commit b67ad14
Showing
34 changed files
with
1,636 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,39 @@ | ||
name: Build | ||
|
||
env: | ||
JAVA_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC" | ||
GRADLE_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC" | ||
TERM: xterm-256color | ||
JDK_CURRENT: 11 | ||
|
||
on: | ||
push: | ||
branches: [ 6.6 ] | ||
pull_request: | ||
branches: [ 6.6 ] | ||
|
||
jobs: | ||
cancel-previous-runs: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 1 | ||
steps: | ||
- uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
build: | ||
needs: cancel-previous-runs | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ env.JDK_CURRENT }} | ||
distribution: 'temurin' | ||
- name: Build | ||
run: ./gradlew clean 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 @@ | ||
11.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,83 @@ | ||
ARG BASE_IMAGE="eclipse-temurin:11-jdk" | ||
ARG EXT_BUILD_COMMANDS="" | ||
ARG EXT_BUILD_OPTIONS="" | ||
|
||
FROM $BASE_IMAGE AS overlay | ||
|
||
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 eclipse-temurin:11-jdk 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 eclipse-temurin:11-jdk 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.