Skip to content

Commit

Permalink
Update Dockerfile-mvn-no-local
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensrtw authored Sep 19, 2024
1 parent 22cc5ff commit 509bb69
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile-mvn-no-local
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,20 @@ ENV CLASSPATH=""
# https://ruleoftech.com/2016/avoiding-jvm-delays-caused-by-random-number-generation
ENV DEFAULT_JAVA_OPTS="-Djava.security.egd=file:///dev/./urandom"

# set working directory to a fixed WebAPI directory
# Create and make working directory to a fixed WebAPI directory
RUN mkdir -p WORKDIR /var/lib/ohdsi/webapi && chown -R 101:101 /var/lib/ohdsi/webapi
WORKDIR /var/lib/ohdsi/webapi

COPY --from=builder /code/opentelemetry-javaagent.jar .
COPY --from=builder --chown=101 /code/opentelemetry-javaagent.jar .

# deploy the just built OHDSI WebAPI war file
# copy resources in order of fewest changes to most changes.
# This way, the libraries step is not duplicated if the dependencies
# do not change.
COPY --from=builder /code/war/WEB-INF/lib*/* WEB-INF/lib/
COPY --from=builder /code/war/org org
COPY --from=builder /code/war/WEB-INF/classes WEB-INF/classes
COPY --from=builder /code/war/META-INF META-INF
COPY --from=builder --chown=101 /code/war/WEB-INF/lib*/* WEB-INF/lib/
COPY --from=builder --chown=101 /code/war/org org
COPY --from=builder --chown=101 /code/war/WEB-INF/classes WEB-INF/classes
COPY --from=builder --chown=101 /code/war/META-INF META-INF

ENV WEBAPI_DATASOURCE_URL="jdbc:postgresql://host.docker.internal:5432/OHDSI?currentSchema=webapi"
# ENV WEBAPI_DATASOURCE_URL="jdbc:postgresql://10.0.21.93:32000/OHDSI?currentSchema=webapi"
Expand Down

0 comments on commit 509bb69

Please sign in to comment.