Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-haz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-haz
Commits
01a19bfc
Commit
01a19bfc
authored
3 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
imporve docker ws
parent
1ba74c8b
No related branches found
No related tags found
1 merge request
!531
Resolves - Trigger CDK Deployment
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ws.Dockerfile
+10
-21
10 additions, 21 deletions
ws.Dockerfile
with
10 additions
and
21 deletions
ws.Dockerfile
+
10
−
21
View file @
01a19bfc
...
...
@@ -16,11 +16,6 @@
ARG
BUILD_IMAGE=usgs/java:11
ARG
FROM_IMAGE=usgs/java:11
ARG
project=nshmp-haz-v2
ARG
builder_workdir=/app/${project}
ARG
libs_dir=${builder_workdir}/build/libs
ARG
jar_file=${libs_dir}/${project}.jar
####
# Builder image: Build jar file.
####
...
...
@@ -30,12 +25,10 @@ ARG builder_workdir
# TODO
# Remove once nshmp-lib is public
ARG
gitlab_token=null
ARG
ci_job_token=null
ENV
GITLAB_TOKEN ${gitlab_token}
ENV
CI_JOB_TOKEN ${ci_job_token}
ARG
GITLAB_TOKEN=null
ARG
CI_JOB_TOKEN=null
WORKDIR
${builder_workdir}
WORKDIR
/app
COPY
. .
...
...
@@ -48,27 +41,23 @@ FROM ${FROM_IMAGE}
LABEL
maintainer="Peter Powers <pmpowers@usgs.gov>, Brandon Clayton <bclayton@usgs.gov>"
ARG
libs_dir
ARG
builder_workdir
ARG
project
ENV
PROJECT ${project}
ENV
CONTEXT_PATH "/"
ENV
BASIN_SERVICE_URL "https://staging-earthquake.usgs.gov/nshmp/ws/data/basin"
ENV
CONTEXT_PATH="/"
ENV
BASIN_SERVICE_URL="https://earthquake.usgs.gov/nshmp/ws/data/basin"
ENV
JAVA_XMS="2g"
ENV
JAVA_XMX="8g"
ENV
MODELS_DIRECTORY="/models"
WORKDIR
/app
COPY
--from=builder
${libs_dir}/*
.
/
COPY
--from=builder
/app/build/libs/nshmp-haz-v2.jar
.
VOLUME
[ "
/models
" ]
VOLUME
[ "
${MODELS_DIRECTORY}
" ]
EXPOSE
8080
ENTRYPOINT
java -jar
"${PROJECT}
.jar
"
\
ENTRYPOINT
java -jar
nshmp-haz-v2
.jar \
"-Xms${JAVA_XMS}" \
"-Xmx${JAVA_XMX}" \
"-Dmicronaut.server.context-path=${CONTEXT_PATH}" \
--basin-service-url="${BASIN_SERVICE_URL}" \
--models="
/models
";
--models="
${MODELS_DIRECTORY}
";
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment