-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
6,285 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
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,20 @@ | ||
FROM artifacts.developer.gov.bc.ca/docker-remote/maven:3.8.1-openjdk-21-slim AS build | ||
WORKDIR /workspace/app | ||
|
||
COPY api/pom.xml . | ||
COPY api/src src | ||
RUN mvn package -DskipTests | ||
RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar) | ||
|
||
FROM artifacts.developer.gov.bc.ca/docker-remote/openjdk:21.0.0-jdk-oracle | ||
RUN useradd -ms /bin/bash spring | ||
RUN mkdir -p /logs | ||
RUN chown -R spring:spring /logs | ||
RUN chmod 755 /logs | ||
USER spring | ||
VOLUME /tmp | ||
ARG DEPENDENCY=/workspace/app/target/dependency | ||
COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib | ||
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF | ||
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app | ||
ENTRYPOINT ["java","-Duser.name=EAS-API","-Xms600m","-Xmx800m","-noverify","-XX:TieredStopAtLevel=1","-XX:+UseParallelGC","-XX:MinHeapFreeRatio=20","-XX:MaxHeapFreeRatio=40","-XX:GCTimeRatio=4","-XX:AdaptiveSizePolicyWeight=90","-XX:MaxMetaspaceSize=300m","-XX:ParallelGCThreads=2","-Djava.util.concurrent.ForkJoinPool.common.parallelism=8","-XX:CICompilerCount=2","-XX:+ExitOnOutOfMemoryError","-Dspring.profiles.active=openshift","-Djava.security.egd=file:/dev/./urandom","-cp","app:app/lib/*","ca.bc.gov.educ.eas.api.EasApiApplication"] |
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,14 @@ | ||
# EDUC-EAS-API | ||
## Build Setup | ||
|
||
``` bash | ||
#Prepare to run | ||
- Connect to VPN | ||
- start up nats-server using `docker run -d --name=nats-main -p 4222:4222 -p 6222:6222 -p 8222:8222 nats -js` | ||
|
||
#Run application with local properties | ||
mvn clean install -Dspring.profiles.active=dev | ||
|
||
#Run application with default properties | ||
mvn clean install | ||
|
Oops, something went wrong.