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
21074940
Commit
21074940
authored
7 years ago
by
Jeremy M Fee
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile to use usgs/hazdev-base-images:latest-centos
parent
c0fce081
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+14
-23
14 additions, 23 deletions
Dockerfile
with
14 additions
and
23 deletions
Dockerfile
+
14
−
23
View file @
21074940
FROM
debian:jessie
FROM
usgs/hazdev-base-images:latest-centos
MAINTAINER
Jeremy Fee <jmfee@usgs.gov>
LABEL
usgs.geomag-algorithms.version=0.4.0
# update os
RUN
apt-get update
--fix-missing
&&
\
apt-get
install
-y
--no-install-recommends
\
# install conda dependencies
RUN
yum
install
-y
\
bzip2
\
ca-certificates
\
curl
\
gcc
\
libcurl4-gnutls-dev
\
libglib2.0-0
\
libgnutls28-dev
\
libsm6
\
libxext6
\
libxrender1
&&
\
apt-get clean
libcurl-devel
\
&&
\
yum clean all
# install conda
...
...
@@ -32,19 +26,16 @@ RUN echo 'export PATH=/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
COPY
. /geomag-algorithms
# configure DOI SSL intercept certificate
# (required when building image from within DOI network)
RUN
mkdir
-p
/usr/local/share/ca-certificates
&&
\
cp
/geomag-algorithms/etc/DOIRootCA2.crt /usr/local/share/ca-certificates/.
&&
\
update-ca-certificates
&&
\
conda config
--set
ssl_verify /etc/ssl/certs/ca-certificates.crt
# install algorithms and dependencies via conda
RUN
conda config
--add
channels obspy
&&
\
RUN
conda config
--set
ssl_verify
$SSL_CERT_FILE
&&
\
conda config
--add
channels obspy
&&
\
conda
install
--yes
jupyter obspy
&&
\
conda clean
-i
-l
-t
-y
&&
\
pip
install
pycurl
&&
\
# build pycurl with SFTP support
export PIP_CERT=$SSL_CERT_FILE && \
export PYCURL_SSL_LIBRARY=nss && \
pip install pycurl && \
# end build pycurl
pip install /geomag-algorithms && \
useradd \
-c 'Docker image user' \
...
...
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