Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor 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
schwede
openstructure
Commits
8192ba5e
Commit
8192ba5e
authored
7 years ago
by
Rafal Gumienny
Browse files
Options
Downloads
Patches
Plain Diff
feat: SCHWED-3096 A working version including tests passing
parent
312290b0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/Dockerfile
+58
-48
58 additions, 48 deletions
docker/Dockerfile
with
58 additions
and
48 deletions
docker/Dockerfile
+
58
−
48
View file @
8192ba5e
FROM
ubuntu:16.04
FROM
ubuntu:16.04
RUN
apt-get update
-y
RUN
apt-get update
-y
&&
apt-get
install
-y
cmake
\
# basic packages
sip-dev
\
libtiff-dev
\
RUN
apt-get
install
-y
cmake
\
libfftw3-dev
\
sip-dev
\
libeigen3-dev
\
libtiff-dev
\
libboost-all-dev
\
libfftw3-dev
\
libpng-dev
\
libeigen3-dev
\
python-all
\
libpng-dev
\
python2.7
\
python-all
\
python-qt4
\
python2.7
\
qt4-qtconfig
\
python-qt4
\
qt4-qmake
\
libboost-all-dev
\
libqt4-dev
\
qt4-qtconfig
\
libpng-dev
\
qt4-qmake
\
wget
\
libqt4-dev
\
git
\
libpng-dev
\
gfortran
\
wget
\
libeigen3-dev
\
git
\
python-pip
\
gfortran
\
tar
\
libeigen3-dev
\
libbz2-dev
\
python-pip
doxygen
\
swig
\
# Install miniconda - to get useful binaries
clustalw
RUN
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
RUN
bash Miniconda2-latest-Linux-x86_64.sh
-p
/opt/miniconda2
-b
-f
RUN
rm
Miniconda2-latest-Linux-x86_64.sh
# Install MSMS
WORKDIR
/
# Install ClustalW and MSMS
RUN
mkdir
-p
/msms
RUN
/opt/miniconda2/bin/conda
install
-y
-c
bioconda
clustalw
=
2.1
msms
=
2.6.1
WORKDIR
/msms
RUN
wget http://mgltools.scripps.edu/downloads/tars/releases/MSMSRELEASE/REL2.6.1/msms_i86_64Linux2_2.6.1.tar.gz
RUN
tar
-xvzf
msms_i86_64Linux2_2.6.1.tar.gz
RUN
ln
-s
/msms/msms.x86_64Linux2.2.6.1 /usr/bin/msms
RUN
ln
-s
/msms/pdb_to_xyzr /usr/bin/pdb_to_xyzr
RUN
ln
-s
/msms/pdb_to_xyzrn /usr/bin/pdb_to_xyzrn
# Install OpenMM
# Install OpenMM
RUN
/opt/miniconda2/bin/conda
install
-y
-c
omnia
openmm
=
7.1.1
=
py27_0
WORKDIR
/
RUN
git clone https://github.com/pandegroup/openmm
WORKDIR
/openmm
RUN
git checkout
-b
7.1.1 tags/7.1.1
RUN
cmake .
RUN
make
-j4
RUN
make
install
# Install DSSP
# Install DSSP
RUN
/opt/miniconda2/bin/conda
install
-y
-c
salilab
dssp
=
3.0.0
WORKDIR
/
RUN
wget ftp://ftp.cmbi.ru.nl/pub/software/dssp/dssp-2.2.1.tgz
RUN
tar
-xvzf
dssp-2.2.1.tgz
WORKDIR
/dssp-2.2.1
RUN
make
RUN
ln
-s
/dssp-2.2.1/mkdssp /usr/bin/mkdssp
# Install some python packages
# Install some python packages
RUN
pip
install
--upgrade
pip
&&
pip
install
numpy
==
1.14.0
\
WORKDIR
/
RUN
pip
install
--upgrade
pip
&&
pip
install
numpy
==
1.10.4
\
scipy
==
1.0.0
\
scipy
==
1.0.0
\
pandas
==
0.22.0
\
pandas
==
0.22.0
\
jupyter
==
1.0.0
jupyter
==
1.0.0
...
@@ -54,9 +72,9 @@ RUN cmake . -DPYTHON_LIBRARIES=/usr/lib/x86_64-linux-gnu/libpython2.7.so \
...
@@ -54,9 +72,9 @@ RUN cmake . -DPYTHON_LIBRARIES=/usr/lib/x86_64-linux-gnu/libpython2.7.so \
-DENABLE_MM
=
ON
\
-DENABLE_MM
=
ON
\
-DCOMPILE_TMTOOLS
=
1
\
-DCOMPILE_TMTOOLS
=
1
\
-DUSE_NUMPY
=
1
\
-DUSE_NUMPY
=
1
\
-DOPEN_MM_LIBRARY
=
/
opt/miniconda2/pkgs/openmm-7.1.1-py27_0
/lib/libOpenMM.so
\
-DOPEN_MM_LIBRARY
=
/
usr/local/openmm
/lib/libOpenMM.so
\
-DOPEN_MM_INCLUDE_DIR
=
/
opt/miniconda2/pkgs/openmm-7.1.1-py27_0
/include
/
\
-DOPEN_MM_INCLUDE_DIR
=
/
usr/local/openmm
/include
\
-DOPEN_MM_PLUGIN_DIR
=
/
opt/miniconda2/pkgs/openmm-7.1.1-py27_0
/lib/plugins
-DOPEN_MM_PLUGIN_DIR
=
/
usr/local/openmm
/lib/plugins
# Build chemdict_tool
# Build chemdict_tool
RUN
make
-j4
chemdict_tool
RUN
make
-j4
chemdict_tool
...
@@ -70,21 +88,18 @@ RUN stage/bin/chemdict_tool update modules/conop/data/charmm.cif compounds.cheml
...
@@ -70,21 +88,18 @@ RUN stage/bin/chemdict_tool update modules/conop/data/charmm.cif compounds.cheml
RUN
cmake
.
-DPYTHON_LIBRARIES
=
/usr/lib/x86_64-linux-gnu/libpython2.7.so
\
RUN
cmake
.
-DPYTHON_LIBRARIES
=
/usr/lib/x86_64-linux-gnu/libpython2.7.so
\
-DOPTIMIZE
=
ON
\
-DOPTIMIZE
=
ON
\
-DENABLE_MM
=
ON
\
-DENABLE_MM
=
ON
\
-DOPEN_MM_LIBRARY
=
/
opt/miniconda2/pkgs/openmm-7.1.1-py27_0
/lib/libOpenMM.so
\
-DOPEN_MM_LIBRARY
=
/
usr/local/openmm
/lib/libOpenMM.so
\
-DOPEN_MM_INCLUDE_DIR
=
/
opt/miniconda2/pkgs/openmm-7.1.1-py27_0
/include
/
\
-DOPEN_MM_INCLUDE_DIR
=
/
usr/local/openmm
/include
\
-DOPEN_MM_PLUGIN_DIR
=
/
opt/miniconda2/pkgs/openmm-7.1.1-py27_0
/lib/plugins
\
-DOPEN_MM_PLUGIN_DIR
=
/
usr/local/openmm
/lib/plugins
\
-DCOMPOUND_LIB
=
/opt/ost/compounds.chemlib
-DCOMPOUND_LIB
=
/opt/ost/compounds.chemlib
# Build OST
# Build OST
RUN
make
-j4
RUN
make
-j4
#
RUN make check
RUN
make check
# go back home
# go back home
WORKDIR
/home
WORKDIR
/home
# Get the example
RUN
wget https://files.rcsb.org/view/5X28.pdb
# Set the environment
# Set the environment
# - for GUI
# - for GUI
ENV
QT_X11_NO_MITSHM 1
ENV
QT_X11_NO_MITSHM 1
...
@@ -93,11 +108,6 @@ ENV PYTHONPATH="/opt/ost/stage/lib64/python2.7/site-packages:${PYTHONPATH}"
...
@@ -93,11 +108,6 @@ ENV PYTHONPATH="/opt/ost/stage/lib64/python2.7/site-packages:${PYTHONPATH}"
# - for PATH
# - for PATH
ENV
PATH="/opt/ost/stage/bin:${PATH}"
ENV
PATH="/opt/ost/stage/bin:${PATH}"
# Link binaries
RUN
ln
-s
/opt/miniconda2/pkgs/clustalw
*
/bin/
*
/usr/bin
RUN
ln
-s
/opt/miniconda2/pkgs/dssp
*
/bin/
*
/usr/bin
RUN
ln
-s
/opt/miniconda2/pkgs/msms
*
/bin/
*
/usr/bin
ENTRYPOINT
["ost"]
ENTRYPOINT
["ost"]
CMD
["-i"]
CMD
["-i"]
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