File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # A simple deployment script for OpenShift.
4
+ # It is assumed that your OpenShift Squonk application has been deployed
5
+ # and that you are running this from the Squonk project/namespace
6
+ # and have logged in as an appropriate user.
7
+
8
+ set -e pipefail
9
+
10
+ oc create -f post-service-descriptors.yaml
11
+
12
+ echo " Squonk pipeline deployment is underway..."
Original file line number Diff line number Diff line change 1
1
---
2
2
3
- # The OpenShift Job definition for the Pipelines SD-Loader image.
3
+ # The OpenShift Job definition for the Squonk Pipelines SD-Loader image.
4
4
# With Squonk running you can execute this in the Squonk project namespace
5
5
# to enable the defined pipelines.
6
6
#
7
7
# oc create -f post-service-descriptors.yaml
8
- # oc delete job/pipelines-sdposter
9
8
10
9
kind : Job
11
10
apiVersion : batch/v1
12
11
metadata :
13
- name : pipelines-sd-poster
12
+ generateName : pipelines-sd-poster-
14
13
spec :
15
14
template :
16
- metadata :
17
- name : pipelines-sd-poster
18
15
spec :
16
+ initContainers :
17
+ - image : yauritux/busybox-curl
18
+ name : wait-for-core-before-pipelines-post
19
+ command : ['sh', '-c',
20
+ ' until (( curl http://coreservices:8080/rest/ping --connect-timeout 5 )); do sleep 2; done' ]
19
21
containers :
20
- - name : pipelines-sd-poster
21
- image : squonk/rdkit- pipelines-sdposter:latest
22
+ - image : squonk/rdkit- pipelines-sdposter:latest
23
+ name : pipelines-sd-poster
22
24
restartPolicy : Never
You can’t perform that action at this time.
0 commit comments