Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-ws-static
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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-ws-static
Commits
8553b037
Commit
8553b037
authored
4 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
update to http for nshmp-lib dependency
parent
7e870cf5
No related branches found
No related tags found
1 merge request
!34
update to http for nshmp-lib dependency
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+11
-17
11 additions, 17 deletions
Dockerfile
build.gradle
+1
-1
1 addition, 1 deletion
build.gradle
settings.gradle
+4
-0
4 additions, 0 deletions
settings.gradle
with
16 additions
and
18 deletions
Dockerfile
+
11
−
17
View file @
8553b037
####
# Build locally:
# docker build --build-arg ssh_private_key="$(cat ~/.ssh/id_rsa)" -t nshmp-netcdf .
# docker build
# --build-arg git_username=<user@name.com>
# --build-arg git_password=<git-api-token>
# -t nshmp-netcdf .
####
# Current project
ARG
project=nshmp-netcdf
# Builder work dir
ARG
workdir=/app/${project}
# Path to libs dir
ARG
libs_dir=${workdir}/build/libs
# Path to jar file
ARG
jar_file=${libs_dir}/${project}.jar
####
...
...
@@ -22,20 +18,18 @@ FROM usgs/centos:8 as builder
ENV
LANG="en_US.UTF-8"
ARG
workdir
ARG
git_username
ARG
git_password
ARG
libs_dir
ARG
jar_file
ARG
ssh_private_key
ARG
workdir
ENV
GIT_NSHMP_USERNAME ${git_username}
ENV
GIT_NSHMP_PASSWORD ${git_password}
WORKDIR
${workdir}
RUN
yum
install
-y
java-11-openjdk which git
\
&&
eval
$(
ssh-agent
-s
)
\
&&
mkdir
-p
~/.ssh
\
&&
chmod
700 ~/.ssh
\
&&
echo
"
${
ssh_private_key
}
"
>>
~/.ssh/id_rsa
\
&&
chmod
0600 ~/.ssh/id_rsa
\
&&
echo
-e
"Host *
\n\t
StrictHostKeyChecking no
\n\n
"
>
~/.ssh/config
RUN
yum
install
-y
java-11-openjdk which git
COPY
build.gradle .
COPY
.git .git
...
...
This diff is collapsed.
Click to expand it.
build.gradle
+
1
−
1
View file @
8553b037
...
...
@@ -24,7 +24,7 @@ repositories {
}
git
{
implementation
(
"
git@
code.usgs.gov
:
ghsc/nshmp/nshmp-lib.git"
,
{
implementation
(
"
https://
code.usgs.gov
/
ghsc/nshmp/nshmp-lib.git"
,
{
name
"nshmp-netcdf-dep--nshmp-lib"
tag
"v0.0.5"
})
...
...
This diff is collapsed.
Click to expand it.
settings.gradle
+
4
−
0
View file @
8553b037
...
...
@@ -3,3 +3,7 @@ plugins {
}
rootProject
.
name
=
"nshmp-netcdf"
git
{
defaultAuthGroup
"nshmp"
}
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