Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
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
Container Registry
Model registry
Operate
Environments
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 Geomagnetism Program
geomag-algorithms
Commits
6d7d279b
Commit
6d7d279b
authored
4 years ago
by
Jeremy M Fee
Browse files
Options
Downloads
Patches
Plain Diff
Add development container target
parent
51629b22
No related branches found
No related tags found
1 merge request
!18
Add development container target
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+24
-1
24 additions, 1 deletion
Dockerfile
with
24 additions
and
1 deletion
Dockerfile
+
24
−
1
View file @
6d7d279b
ARG
FROM_IMAGE=usgs/centos:latest
ARG
FROM_IMAGE=usgs/centos:latest
FROM
${FROM_IMAGE}
FROM
${FROM_IMAGE}
as
conda
LABEL
maintainer="Jeremy Fee <jmfee@usgs.gov>"
LABEL
maintainer="Jeremy Fee <jmfee@usgs.gov>"
ARG
GIT_BRANCH_NAME=none
ARG
GIT_BRANCH_NAME=none
...
@@ -35,6 +35,29 @@ RUN conda config --set ssl_verify $SSL_CERT_FILE \
...
@@ -35,6 +35,29 @@ RUN conda config --set ssl_verify $SSL_CERT_FILE \
&&
yum
install
-y
which
\
&&
yum
install
-y
which
\
&&
yum clean all
&&
yum clean all
################################################################################
## Development image
# build by running
# docker build -t geomag-algorithms-development --target development .
FROM
conda
as
development
# install dependencies via pipenv
WORKDIR
/geomag-algorithms
COPY
Pipfile /geomag-algorithms
RUN
pipenv
--site-packages
install
--dev
--skip-lock
# copy library (ignores set in .dockerignore)
COPY
. /geomag-algorithms
################################################################################
## Production image
FROM
conda
RUN
useradd
\
RUN
useradd
\
-c
'Docker image user'
\
-c
'Docker image user'
\
-m
\
-m
\
...
...
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