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
86ae3fef
Commit
86ae3fef
authored
4 years ago
by
Rivers, Travis (Contractor) Creighton
Browse files
Options
Downloads
Patches
Plain Diff
add comments, clean up
parent
2adfbb35
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+2
-1
2 additions, 1 deletion
Dockerfile
docker-entrypoint.sh
+2
-0
2 additions, 0 deletions
docker-entrypoint.sh
with
4 additions
and
1 deletion
Dockerfile
+
2
−
1
View file @
86ae3fef
...
...
@@ -3,13 +3,14 @@ ARG FROM_IMAGE=usgs/centos:8
FROM
${FROM_IMAGE}
LABEL
maintainer="Jeremy Fee <jmfee@usgs.gov>"
#
install conda
#
set environment variables
ENV
PATH /conda/bin:$PATH
ENV
LC_ALL='en_US.UTF-8'
ENV
LANG='en_US.UTF-8'
ENV
PYTHONDONTWRITEBYTECODE 1
ENV
PYTHONUNBUFFERED 1
# install conda
RUN
echo
'export PATH=/conda/bin:$PATH'
>
/etc/profile.d/conda.sh
\
&&
curl
\
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
\
...
...
This diff is collapsed.
Click to expand it.
docker-entrypoint.sh
+
2
−
0
View file @
86ae3fef
#! /bin/bash
# Environment variable to determine whether to start webservice
export
WEBSERVICE
=
${
WEBSERVICE
:-
false
}
# add geomagio to notebook path
export
PYTHONPATH
=
/geomag-algorithms
...
...
@@ -14,5 +15,6 @@ if [ $WEBSERVICE = 'false' ]; then
--port
=
8000
else
# run gunicorn server for web service
exec
pipenv run gunicorn
--bind
0.0.0.0:8000
-w
4
-k
uvicorn.workers.UvicornWorker geomagio.api.app:app
fi
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