Skip to content

Commit d4f6c4e

Browse files
committed
Merge branch 'external_exec'
2 parents 91294a3 + de015e3 commit d4f6c4e

33 files changed

+473
-26
lines changed

Dockerfile-rdkit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM informaticsmatters/rdkit-python-debian:Release_2018_03_01
1+
FROM informaticsmatters/rdkit-python-debian:Release_2018_09_1
22
LABEL maintainer="Tim Dudgeon<[email protected]>"
33

44
USER root

Dockerfile-sdposter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM centos
1+
FROM centos:7
22
MAINTAINER Tim Dudgeon <[email protected]>
33

44
# An image to populate the Core with the contents of the

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,35 @@ the utils.default_open_output* methods. Better though to also specify metadata f
182182
the field types when you do this. See e.g. conformers.py for an example of
183183
how to do this.
184184

185+
## Deployment to Squonk
186+
187+
The service descriptors need to to POSTed to the Squonk coreservices REST API.
188+
189+
### Openshift
190+
191+
You must previously have deployed Squonk using the OpenShift templates (e.g. using the deployment
192+
scripts or Ansible playbooks).
193+
The deployment uses the [post-service-descriptors.yaml]() template to create a pod that posts the
194+
service descriptors using a `squonk/rdkit-pipelines-sdposter` Docker container.
195+
196+
Build the Docker image and push to docker hub:
197+
198+
```
199+
docker build -t squonk/rdkit-pipelines-sdposter:latest -f Dockerfile-sdposter .
200+
docker push squonk/rdkit-pipelines-sdposter:latest
201+
```
202+
203+
Post the service descriptors by creating the pod. You must been in the `squonk` project and be logged in as a suitable
204+
user.
205+
206+
```
207+
oc create -f post-service-descriptors.yaml
208+
```
209+
210+
Alternatively you can run the `deploy.sh` script having defined some environment variables
211+
using the `setenv.sh` script in the Squonk openshift deployment.
212+
213+
185214
## Contact
186215

187216
Any questions contact:

data/sucos/4e3g_lig.sdf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
RDKit 3D
3+
4+
10 10 0 0 0 0 0 0 0 0999 V2000
5+
17.3410 1.4040 15.6300 O 0 0 0 0 0 0 0 0 0 0 0 0
6+
16.4400 2.1870 15.2350 C 0 0 0 0 0 0 0 0 0 0 0 0
7+
15.2530 1.8470 15.5410 O 0 0 0 0 0 0 0 0 0 0 0 0
8+
16.7060 3.4620 14.6760 C 0 0 0 0 0 0 0 0 0 0 0 0
9+
18.0480 3.9210 14.6600 C 0 0 0 0 0 0 0 0 0 0 0 0
10+
18.4420 5.2100 14.1920 C 0 0 0 0 0 0 0 0 0 0 0 0
11+
17.3440 5.9500 13.6530 C 0 0 0 0 0 0 0 0 0 0 0 0
12+
17.5460 7.2150 13.0840 O 0 0 0 0 0 0 0 0 0 0 0 0
13+
16.0150 5.4960 13.6580 C 0 0 0 0 0 0 0 0 0 0 0 0
14+
15.6810 4.2780 14.2290 C 0 0 0 0 0 0 0 0 0 0 0 0
15+
2 1 2 0
16+
3 2 1 0
17+
4 2 1 0
18+
5 4 2 0
19+
6 5 1 0
20+
7 6 2 0
21+
8 7 1 0
22+
9 7 1 0
23+
10 9 2 0
24+
10 4 1 0
25+
M END

data/sucos/benzene.sdf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
PyMOL2.1 3D 0
3+
4+
6 6 0 0 0 0 0 0 0 0999 V2000
5+
16.7060 3.4620 14.6760 C 0 0 0 0 0 0 0 0 0 0 0 0
6+
18.0480 3.9210 14.6600 C 0 0 0 0 0 0 0 0 0 0 0 0
7+
18.4420 5.2100 14.1920 C 0 0 0 0 0 0 0 0 0 0 0 0
8+
17.3440 5.9500 13.6530 C 0 0 0 0 0 0 0 0 0 0 0 0
9+
16.0150 5.4960 13.6580 C 0 0 0 0 0 0 0 0 0 0 0 0
10+
15.6810 4.2780 14.2290 C 0 0 0 0 0 0 0 0 0 0 0 0
11+
1 2 2 0 0 0 0
12+
1 6 1 0 0 0 0
13+
2 3 1 0 0 0 0
14+
3 4 2 0 0 0 0
15+
4 5 1 0 0 0 0
16+
5 6 2 0 0 0 0
17+
M END
18+
$$$$

post-service-descriptors.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
# run locally with something like this:
3+
# ./post-service-descriptors.sh http://localhost:8091/coreservices/rest/v1/services
4+
# or
5+
# docker run -it --rm -v $PWD:$PWD:Z -w $PWD --network deploy_squonk_back centos:7 ./post-service-descriptors.sh
26

37
set -e
48

src/nextflow/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,8 @@ docker run -it --rm -v $PWD:$PWD:z -w $PWD -v /var/run/docker.sock:/var/run/dock
162162
```
163163

164164
See [test-nextflow.sh](../..test-nextflow.sh) for some real examples.
165+
166+
To debug in squonk move into the execution dir (/squonk/work/docker/<uuid>) and then execute:
167+
```
168+
docker run -it --rm -v $PWD:$PWD:z -w $PWD -v /var/run/docker.sock:/var/run/docker.sock informaticsmatters/nextflow-docker:0.30.2 ./execute
169+
```

src/nextflow/docking/plip.nsd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
!<org.squonk.core.NextflowServiceDescriptor>
23
serviceConfig:
34
id: "pipelines.pli.v1"
45
"name": "PLI docking scoring"

src/nextflow/docking/rdock.nsd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
!<org.squonk.core.NextflowServiceDescriptor>
23
serviceConfig:
34
id: "pipelines.docking.rdock.basic.v2"
45
"name": "rDock docking"

src/nextflow/docking/smog.nsd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
!<org.squonk.core.NextflowServiceDescriptor>
23
serviceConfig:
34
id: "pipelines.docking.smog2016.v1"
45
"name": "SMoG2016 docking scoring"

0 commit comments

Comments
 (0)