This projects contains a Dockerfile that can be built and ran.
docker build \
--build-arg BASE_HREF=<some/path> \
nshmp-apps .
Note: Replace
<some/path>
with an appropritate base href
Example:
Example :docker build \
--build-arg BASE_HREF=nshmp \
nshmp-apps .
docker run -p <PORT>:8080 nshmp-apps
Note: Replace
<PORT>
with an appropriate port to run the application.
Example:
Example :docker run -p 8080:8080 nshmp-apps
nshmp-apps is available as a public image from the GitLab registry with tags:
latest
,staging-latest
: Latest updates associated with the
main branchproduction-latest
: Latest stable release associated with a
tagTo ensure you have the latest nshmp-apps update associated with a specific tag, always first pull the image from Docker:
Example :docker pull code.usgs.gov:5001/ghsc/nshmp/nshmp-apps/nshmp-apps:<tag>
Replace
<tag>
with one of the above tags.
Example:
Example :docker pull code.usgs.gov:5001/ghsc/nshmp/nshmp-apps/nshmp-apps:latest
docker run -p 8080:8080 code.usgs.gov:5001/ghsc/nshmp/nshmp-apps/nshmp-apps:latest
By default the backend web services that nshmp-apps calls use
https://earthquake.usgs.gov
as the default, this can be changed by setting
the BASE_SERVICE_URL
environment variable:
docker run -p 8080:8080 -e BASE_SERVICE_URL="" code.usgs.gov:5001/ghsc/nshmp/nshmp-apps/nshmp-apps:latest