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
b9c1950e
Commit
b9c1950e
authored
1 year ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
e8997179
No related branches found
No related tags found
2 merge requests
!743
Production Release | nshmp-haz
,
!741
Docker Images
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+6
-6
6 additions, 6 deletions
Dockerfile
docs/pages/Using-Docker.md
+3
-3
3 additions, 3 deletions
docs/pages/Using-Docker.md
ws.Dockerfile
+3
-3
3 additions, 3 deletions
ws.Dockerfile
with
12 additions
and
12 deletions
Dockerfile
+
6
−
6
View file @
b9c1950e
...
...
@@ -19,8 +19,9 @@
#
# docker run \
# --env CLASS_NAME="nshmp-haz class name" \
# --volume "/path/to/model:/model" \
# --volume "/path/to/output:/output" \
# --volume "/path/to/sites:/app/sites.geojson" \
# --volume "/path/to/model:/app/model" \
# --volume "/path/to/output:/app/output" \
# usgs/nshmp-haz:production-latest
#
# Build locally:
...
...
@@ -44,8 +45,8 @@ WORKDIR /app
COPY
. .
USER
root
RUN
./gradlew assemble
USER
usgs-user
####
# Application image: Run jar file.
...
...
@@ -72,9 +73,8 @@ COPY --from=builder /app/build/libs/nshmp-haz.jar .
COPY
scripts scripts
USER
root
RUN
yum
install
-y
jq
USER
usgs-user
RUN
echo
"{}"
>
"
${
CONFIG_FILE
}
"
RUN
yum
install
-y
jq
\
&&
echo
"{}"
>
"
${
CONFIG_FILE
}
"
ENTRYPOINT
[ "bash", "scripts/docker-entrypoint.sh" ]
This diff is collapsed.
Click to expand it.
docs/pages/Using-Docker.md
+
3
−
3
View file @
b9c1950e
...
...
@@ -84,7 +84,7 @@ docker pull usgs/nshmp-haz:latest
docker run
\
--env
CLASS_NAME
=
"HazardCalc"
\
--volume
"
$(
pwd
)
/nshm-hawaii:/app/model"
\
--volume
"
$(
pwd
)
/sites.geojson"
\
--volume
"
$(
pwd
)
/sites.geojson
:/app/sites.geojson
"
\
--volume
"
$(
pwd
)
/hawaii-hazard-output:/app/output"
\
usgs/nshmp-haz
```
...
...
@@ -107,7 +107,7 @@ docker run \
--env
CLASS_NAME
=
"DisaggCalc"
\
--env
RETURN_PERIOD
=
475
\
--volume
"
$(
pwd
)
/nshm-hawaii:/app/model"
\
--volume
"
$(
pwd
)
/sites.geojson"
\
--volume
"
$(
pwd
)
/sites.geojson
:/app/sites.geojson
"
\
--volume
"
$(
pwd
)
/hawaii-disagg-output:/app/output"
\
usgs/nshmp-haz:latest
```
...
...
@@ -129,7 +129,7 @@ docker pull usgs/nshmp-haz:latest
docker run
\
--env
CLASS_NAME
=
"RateCalc"
\
--volume
"
$(
pwd
)
/nshm-hawaii:/app/model"
\
--volume
"
$(
pwd
)
/sites.geojson"
\
--volume
"
$(
pwd
)
/sites.geojson
:/app/sites.geojson
"
\
--volume
"
$(
pwd
)
/hawaii-rate-output:/app/output"
\
usgs/nshmp-haz
```
...
...
This diff is collapsed.
Click to expand it.
ws.Dockerfile
+
3
−
3
View file @
b9c1950e
...
...
@@ -13,7 +13,7 @@
#
# Run locally:
# docker run -p 8080:8080
# -v "path/to/model:/model"
# -v "path/to/model:/
app/
model"
# nshmp-haz-ws
####
...
...
@@ -36,8 +36,8 @@ WORKDIR /app
COPY
. .
USER
root
RUN
./gradlew assemble
USER
usgs-user
####
# Application image: Run jar file.
...
...
@@ -48,7 +48,7 @@ LABEL maintainer="Peter Powers <pmpowers@usgs.gov>, Brandon Clayton <bclayton@us
ENV
CONTEXT_PATH="/"
ENV
JAVA_OPTS="-Xms2g -Xmx8g"
ENV
MODELS_DIRECTORY="/model"
ENV
MODELS_DIRECTORY="/
app/
model"
WORKDIR
/app
...
...
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