[extensions-web] openshift: added cron jobs
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] openshift: added cron jobs
- Date: Fri, 14 Dec 2018 17:18:06 +0000 (UTC)
commit cfd75f46c168eccc7689734b81438f484d8c6d8b
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Fri Dec 14 21:17:58 2018 +0400
openshift: added cron jobs
openshift/templates/extensions-web-nginx.json | 52 +++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
---
diff --git a/openshift/templates/extensions-web-nginx.json b/openshift/templates/extensions-web-nginx.json
index 24bb4bf..e7f0e41 100644
--- a/openshift/templates/extensions-web-nginx.json
+++ b/openshift/templates/extensions-web-nginx.json
@@ -427,6 +427,58 @@
}
}
}
+ },
+ {
+ "kind": "CronJob",
+ "apiVersion": "batch/v1beta1",
+ "metadata": {
+ "name": "job-update-popularity"
+ },
+ "spec": {
+ "schedule": "0 0 * * *",
+ "jobTemplate": {
+ "spec": {
+ "template": {
+ "spec": {
+ "containers": [
+ {
+ "name": "update-popularity",
+ "image": "${NAME}:latest",
+ "command": ["/extensions-web/app/bin/sweettooth-cron-update"]
+ }
+ ],
+ "restartPolicy": "Never"
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "kind": "CronJob",
+ "apiVersion": "batch/v1beta1",
+ "metadata": {
+ "name": "job-update-software"
+ },
+ "spec": {
+ "schedule": "10 0 * * *",
+ "jobTemplate": {
+ "spec": {
+ "template": {
+ "spec": {
+ "containers": [
+ {
+ "name": "update-software",
+ "image": "${NAME}:latest",
+ "command": ["/extensions-web/app/bin/sweettooth-cron-software"]
+ }
+ ],
+ "restartPolicy": "Never"
+ }
+ }
+ }
+ }
+ }
}
],
"parameters": [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]