File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1
- FROM centos
1
+ FROM centos:7
2
2
MAINTAINER Tim Dudgeon <
[email protected] >
3
3
4
4
# An image to populate the Core with the contents of the
Original file line number Diff line number Diff line change @@ -182,6 +182,35 @@ the utils.default_open_output* methods. Better though to also specify metadata f
182
182
the field types when you do this. See e.g. conformers.py for an example of
183
183
how to do this.
184
184
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
+
185
214
## Contact
186
215
187
216
Any questions contact:
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
# run locally with something like this:
3
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
4
6
5
7
set -e
6
8
You can’t perform that action at this time.
0 commit comments