Skip to content

Commit 9066d85

Browse files
committed
minor tweaks to sd posting on openshift
1 parent 67f8a69 commit 9066d85

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

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:

post-service-descriptors.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22
# run locally with something like this:
33
# ./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
46

57
set -e
68

0 commit comments

Comments
 (0)