Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
dssp
Commits
18921fa8
Unverified
Commit
18921fa8
authored
Jan 04, 2024
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated for newer code
parent
24c657e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
23 deletions
+29
-23
Dockerfile
+13
-13
README.md
+16
-10
No files found.
Dockerfile
View file @
18921fa8
FROM
ubuntu:2
0
.04
FROM
ubuntu:2
2
.04
ENV
TZ="
America/New_York
"
ENV
TZ="
Europe/Amsterdam
"
RUN
apt-get update
&&
\
RUN
apt-get update
&&
\
apt-get install
-yq
tzdata
&&
\
apt-get install
-yq
tzdata
&&
\
ln
-fs
/usr/share/zoneinfo/
America/New_York
/etc/localtime
&&
\
ln
-fs
/usr/share/zoneinfo/
Europe/Amsterdam
/etc/localtime
&&
\
dpkg-reconfigure
-f
noninteractive tzdata
&&
\
dpkg-reconfigure
-f
noninteractive tzdata
&&
\
apt install
-y
build-essential cmake zlib1g-dev git libeigen3-dev
apt install
-y
build-essential cmake zlib1g-dev git libeigen3-dev
...
@@ -12,10 +12,11 @@ WORKDIR /build
...
@@ -12,10 +12,11 @@ WORKDIR /build
# Build and install libcifpp
# Build and install libcifpp
# https://github.com/PDB-REDO/libcifpp
# https://github.com/PDB-REDO/libcifpp
RUN
cd
/build
&&
\
RUN
cd
/build
&&
\
git clone https://github.com/PDB-REDO/libcifpp.git
--recurse-submodules
&&
\
git clone https://github.com/PDB-REDO/libcifpp.git
&&
\
cd
libcifpp
&&
\
cd
libcifpp
&&
\
cmake
-S
.
-B
build
-DCMAKE_INSTALL_PREFIX
=
/root/.local
-DCMAKE_BUILD_TYPE
=
Release
&&
\
cmake
-S
.
-B
build
-DCMAKE_BUILD_TYPE
=
Release
\
cmake
--build
build
&&
\
-DBUILD_TESTING
=
OFF
-DCIFPP_DOWNLOAD_CCD
=
OFF
&&
\
cmake
--build
build
-j
$(
nproc
)
&&
\
cmake
--install
build
&&
\
cmake
--install
build
&&
\
echo
"libcifpp installed"
echo
"libcifpp installed"
...
@@ -24,19 +25,18 @@ RUN cd /build && \
...
@@ -24,19 +25,18 @@ RUN cd /build && \
RUN
cd
/build
&&
\
RUN
cd
/build
&&
\
git clone https://github.com/mhekkel/libmcfp.git
&&
\
git clone https://github.com/mhekkel/libmcfp.git
&&
\
cd
libmcfp
&&
\
cd
libmcfp
&&
\
mkdir build
&&
\
cmake
-S
.
-B
build
-DBUILD_TESTING
=
OFF
&&
\
cd
build
&&
\
cmake
--build
build
-j
$(
nproc
)
&&
\
cmake ..
&&
\
cmake
--install
build
&&
\
cmake
--build
.
&&
\
cmake
--install
.
&&
\
echo
"libmcfp installed"
echo
"libmcfp installed"
# Build and install dssp
# Build and install dssp
COPY
. /src
COPY
. /src
RUN
cd
/src
&&
\
RUN
cd
/src
&&
\
rm
-rf
build
&&
\
mkdir build
&&
\
mkdir build
&&
\
cmake
-S
.
-B
build
-DCMAKE_BUILD_TYPE
=
Release
-D
CMAKE_PREFIX_PATH
=
/root/.local/lib/cmake/cifpp/
&&
\
cmake
-S
.
-B
build
-DCMAKE_BUILD_TYPE
=
Release
-D
BUILD_TESTING
=
OFF
&&
\
cmake
--build
build
&&
\
cmake
--build
build
-j
$(
nproc
)
&&
\
cmake
--install
build
&&
\
cmake
--install
build
&&
\
echo
"dssp installed"
&&
\
echo
"dssp installed"
&&
\
rm
-rf
/src /build
rm
-rf
/src /build
...
...
README.md
View file @
18921fa8
...
@@ -33,7 +33,7 @@ Make sure you install [libcif++](https://github.com/PDB-REDO/libcifpp) and [libm
...
@@ -33,7 +33,7 @@ Make sure you install [libcif++](https://github.com/PDB-REDO/libcifpp) and [libm
After that, building should be as easy as typing:
After that, building should be as easy as typing:
```
bash
```
console
git clone https://github.com/PDB-REDO/dssp.git
git clone https://github.com/PDB-REDO/dssp.git
cd dssp
cd dssp
mkdir build
mkdir build
...
@@ -50,21 +50,28 @@ See [manual page](doc/mkdssp.md) for more info. Or even better, see the [DSSP we
...
@@ -50,21 +50,28 @@ See [manual page](doc/mkdssp.md) for more info. Or even better, see the [DSSP we
Docker
Docker
------
------
Build the image yourself:
Build the image yourself:
```
bash
```
console
git clone https://github.com/PDB-REDO/dssp.git
git clone https://github.com/PDB-REDO/dssp.git
docker build
-t
dssp
.
cd dssp
sudo docker build -t dssp .
```
```
Or pull from Docker Hub:
Or pull from Docker Hub:
```
bash
```
console
docker pull stephenturner/dssp
&&
docker tag stephenturner/dssp dssp
sudo
docker pull stephenturner/dssp && docker tag stephenturner/dssp dssp
```
```
Usage:
Usage:
```
bash
```
console
docker run
--rm
dssp
sudo docker run --rm dssp
```
```
\ No newline at end of file
To run dssp on the file
`/srv/data/pdb/pdb/cb/pdb1cbs.ent.gz`
:
```
console
sudo docker run --rm -it -v /srv/data/pdb/pdb:/tmp/pdb dssp /tmp/pdb/cb/pdb1cbs.ent.gz
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment