Skip to content

Commit e380b4f

Browse files
author
Alan Christie
committed
- Requirements now in a file rather than inline
(matches the way sygnature requirements are added)
1 parent 9e66637 commit e380b4f

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

Dockerfile-obabel

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ USER root
99

1010
# Copy the obabel pipeline implementation into the image
1111
COPY src/python /opt/python-obabel
12-
RUN apt-get update && apt-get install -y --no-install-recommends python-setuptools gzip python-pip && pip install -e /opt/python-obabel
13-
# And the pip packages including pipeline-utilities and im-pipelines-utils-rdkit
14-
RUN pip install im-pipelines-utils==2.2.* im-pipelines-utils-rdkit==1.4.*
12+
RUN apt-get update && \
13+
apt-get install -y --no-install-recommends \
14+
python-setuptools \
15+
gzip \
16+
python-pip && \
17+
pip install -e /opt/python-obabel
18+
# And the project pip requirements
19+
COPY requirements-obabel.txt /root/
20+
RUN pip install -r /root/requirements-obabel.txt
1521

1622
# The CMD is simply to run 'execute' in the WORKDIR.
1723
# The user would normally mount a volume with their own execute

Dockerfile-rdkit

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ RUN apt-get -y update && apt-get -y install zip unzip procps
88

99
# Copy the pipeline implementation into the image
1010
COPY src/python /opt/python
11+
COPY requirements-rdkit.txt /root/
1112
RUN pip install -e /opt/python
12-
# And the pip packages including pipeline-utilities and im-pipelines-utils-rdkit
13-
RUN pip install molvs standardiser matplotlib \
14-
im-pipelines-utils>=2.4.5 im-pipelines-utils-rdkit>=1.5.7
13+
# And the pip packages from the project requirements
14+
# NOTE: matplotlib is missing
15+
RUN pip install -r /root/requirements-rdkit.txt
1516

1617
# The CMD is simply to run 'execute' in the WORKDIR.
1718
# The user would normally mount a volume with their own execute

Dockerfile-rdkit-centos

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ RUN yum -y update && yum -y install zip unzip python-devel python2-pip python-se
88

99
# Copy the pipeline implementation into the image
1010
COPY src/python /opt/python
11+
COPY requirements-rdkit.txt /root/
1112
RUN pip install -e /opt/python
12-
# And the pip packages including pipeline-utilities and im-pipelines-utils-rdkit
13+
# And the pip packages from the project requirements
1314
# NOTE: matplotlib is missing
14-
RUN pip install molvs standardiser im-pipelines-utils>=2.4.5 im-pipelines-utils-rdkit>=1.5.7
15+
RUN pip install -r /root/requirements-rdkit.txt
1516

1617
# The CMD is simply to run 'execute' in the WORKDIR.
1718
# The user would normally mount a volume with their own execute

requirements-obabel.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
im-pipelines-utils==2.4.*
2+
im-pipelines-utils-rdkit==1.5.*
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
im-pipelines-utils==2.4.*
22
im-pipelines-utils-rdkit==1.5.*
33
matplotlib==2.2.*
4-
scipy==1.1.*
5-
numpy==1.14.*
6-
scikit-learn==0.19.*
7-
pandas==0.23.*
4+
molvs==0.1.1
5+
standardiser==0.1.9

0 commit comments

Comments
 (0)