-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
230dee4
commit 6a729a6
Showing
2 changed files
with
13 additions
and
44 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 |
---|---|---|
@@ -1,52 +1,21 @@ | ||
FROM openjdk:8@sha256:75739abc3852736798b0f0f897c98d8f587368e8e6cf9a2580289e3390b6432b | ||
FROM gradle:6.9-jdk8 AS builder | ||
USER root | ||
WORKDIR /usr/src | ||
COPY . . | ||
RUN gradle build --no-daemon -x check -x test | ||
|
||
FROM openjdk:8-jdk-alpine | ||
RUN apk --no-cache add openssl | ||
|
||
EXPOSE 8080 | ||
|
||
LABEL maintainer="UC Davis DSS IT http://it.dss.ucdavis.edu" | ||
|
||
WORKDIR /usr/src/app | ||
|
||
ARG IPA_DATASOURCE_URL | ||
ENV IPA_DATASOURCE_URL $IPA_DATASOURCE_URL | ||
ARG IPA_DATASOURCE_USERNAME | ||
ENV IPA_DATASOURCE_USERNAME $IPA_DATASOURCE_USERNAME | ||
ARG IPA_DATASOURCE_PASSWORD | ||
ENV IPA_DATASOURCE_PASSWORD $IPA_DATASOURCE_PASSWORD | ||
ARG IPA_SPRING_PROFILE="development" | ||
ENV IPA_SPRING_PROFILE $IPA_SPRING_PROFILE | ||
ARG IPA_JWT_SIGNING_KEY | ||
ENV IPA_JWT_SIGNING_KEY $IPA_JWT_SIGNING_KEY | ||
ARG IPA_JWT_TIMEOUT | ||
ENV IPA_JWT_TIMEOUT $IPA_JWT_TIMEOUT | ||
ARG IPA_URL_API | ||
ENV IPA_URL_API $IPA_URL_API | ||
ARG DW_URL | ||
ENV DW_URL $DW_URL | ||
ARG DW_TOKEN | ||
ENV DW_TOKEN $DW_TOKEN | ||
ARG DW_PORT | ||
ENV DW_PORT $DW_PORT | ||
ARG SMTP_HOST | ||
ENV SMTP_HOST $SMTP_HOST | ||
ARG SMTP_EMAIL_FROM | ||
ENV SMTP_EMAIL_FROM $SMTP_EMAIL_FROM | ||
ARG IPA_URL_FRONTEND | ||
ENV IPA_URL_FRONTEND $IPA_URL_FRONTEND | ||
ARG CAS_URL | ||
ENV CAS_URL $CAS_URL | ||
|
||
COPY import-rds-certs.sh . | ||
RUN ./import-rds-certs.sh | ||
|
||
COPY ./gradle gradle | ||
COPY ./gradlew gradlew | ||
COPY ./build.gradle build.gradle | ||
COPY ./checkstyle.xml checkstyle.xml | ||
|
||
# RUN ./gradlew resolveDependencies | ||
|
||
COPY ./src src | ||
|
||
RUN ./gradlew build -x test | ||
COPY --from=builder /usr/src/build/libs/ipa-api-0.1.0.jar ipa-api-0.1.0.jar | ||
|
||
CMD java -Djava.security.egd=file:/dev/./urandom -jar build/libs/ipa-api-0.1.0.jar | ||
CMD java -Djava.security.egd=file:/dev/./urandom -jar ./ipa-api-0.1.0.jar |
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