[wgo-web] Land the cron job definition for civicrm



commit 50cbd06d8dcf67d99b548f61bf0877fdee843bfe
Author: Andrea Veri <averi redhat com>
Date:   Wed Jun 19 15:27:26 2019 +0200

    Land the cron job definition for civicrm

 civicrm-cron.yaml       | 36 ++++++++++++++++++++++++++++++++++++
 gnome-web-www-cron.yaml |  2 +-
 2 files changed, 37 insertions(+), 1 deletion(-)
---
diff --git a/civicrm-cron.yaml b/civicrm-cron.yaml
new file mode 100644
index 0000000..b6f12fa
--- /dev/null
+++ b/civicrm-cron.yaml
@@ -0,0 +1,36 @@
+apiVersion: batch/v1beta1
+kind: CronJob
+metadata:
+  name: wgo-civicrm-cron
+spec:
+  schedule: '*/5 * * * *'
+  successfulJobsHistoryLimit: 3
+  failedJobsHistoryLimit: 1
+  jobTemplate:
+    metadata:
+      labels:
+        job: wgo-civicrm-cron
+    spec:
+      template:
+        spec:
+          containers:
+          - name: wgo-civicrm-cron
+            image: docker-registry.default.svc:5000/wgo/prod
+            command: ["/usr/local/bin/civicrm-cron.sh"]
+            imagePullPolicy: Always
+            env:
+            - name: CIVICRM_USER_PASSWORD
+              valueFrom:
+                secretKeyRef:
+                  name: civicrmcron
+                  key: civicrmcron-password
+            volumeMounts:
+            - mountPath: /srv/http/www.gnome.org
+              name: wgo-data
+          dnsPolicy: ClusterFirst
+          restartPolicy: Never
+          terminationGracePeriodSeconds: 30
+          volumes:
+          - name: wgo-data
+            persistentVolumeClaim:
+              claimName: wgo-data-claim
diff --git a/gnome-web-www-cron.yaml b/gnome-web-www-cron.yaml
index f53d660..7f20bc5 100644
--- a/gnome-web-www-cron.yaml
+++ b/gnome-web-www-cron.yaml
@@ -16,7 +16,7 @@ spec:
           containers:
           - name: wgo-cron
             image: "docker-registry.default.svc:5000/wgo/prod"
-            command: "/usr/local/bin/git-pull.sh"
+            command: ["/usr/local/bin/git-pull.sh"]
             imagePullPolicy: Always
             volumeMounts:
             - mountPath: /srv/http/www.gnome.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]