Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mhc_rank
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Skillman-Lawrence
mhc_rank
Commits
a08ca05d
Commit
a08ca05d
authored
9 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
Split python2 into separate Dockerfile to speed up build (docker hub build was timing out)
parent
c440acb0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+4
-6
4 additions, 6 deletions
Dockerfile
docker/python2/Dockerfile
+12
-0
12 additions, 0 deletions
docker/python2/Dockerfile
with
16 additions
and
6 deletions
Dockerfile
+
4
−
6
View file @
a08ca05d
...
...
@@ -37,16 +37,14 @@ WORKDIR /home/user
# Setup virtual envs and install convenience packages. Note: installing
# cherrypy as part of the mhcflurry installation weirdly fails on a unicode
# issue in python2, but installing it separately seems to work.
We also install
# bokeh so that dask distributed will have an admin web interface.
# issue in python2, but installing it separately seems to work.
#
We also install
bokeh so that dask distributed will have an admin web interface.
RUN
virtualenv venv-py3
--python
=
python3
&&
\
venv-py3/bin/pip
install
cherrypy bokeh distributed jupyter seaborn
&&
\
virtualenv venv-py2
--python
=
python
&&
\
venv-py2/bin/pip
install
cherrypy bokeh distributed jupyter seaborn
venv-py3/bin/pip
install
cherrypy bokeh distributed jupyter seaborn
# Install mhcflurry.
COPY
. ./mhcflurry
RUN
venv-py3/bin/pip
install
./mhcflurry
&&
venv-py2/bin/pip
install
./mhcflurry
RUN
venv-py3/bin/pip
install
./mhcflurry
EXPOSE
8888
CMD
venv-py3/bin/jupyter notebook --no-browser
This diff is collapsed.
Click to expand it.
docker/python2/Dockerfile
0 → 100644
+
12
−
0
View file @
a08ca05d
FROM
hammerlab/mhcflurry:latest
# Extend the main MHCflurry docker image to additionally have a Python2 virtual
# environment.
MAINTAINER
Tim O'Donnell <timodonnell@gmail.com>
RUN
virtualenv venv-py2
--python
=
python
&&
\
venv-py2/bin/pip
install
cherrypy bokeh distributed jupyter seaborn ./mhcflurry
EXPOSE
8888
CMD
venv-py2/bin/jupyter notebook --no-browser
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