[extensions-web/deploy] openshift: added imagestreams for parent images



commit 58ef16e933ceecf5068ea9bd6eee4d4c1909930a
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sat Dec 15 21:07:02 2018 +0400

    openshift: added imagestreams for parent images

 openshift/templates/extensions-web-nginx.json | 55 ++++++++++++++++++++++++++-
 1 file changed, 54 insertions(+), 1 deletion(-)
---
diff --git a/openshift/templates/extensions-web-nginx.json b/openshift/templates/extensions-web-nginx.json
index 705ae26..3de31db 100644
--- a/openshift/templates/extensions-web-nginx.json
+++ b/openshift/templates/extensions-web-nginx.json
@@ -107,6 +107,54 @@
         }
       }
     },
+    {
+      "kind": "ImageStream",
+      "apiVersion": "v1",
+      "metadata": {
+        "name": "nginx",
+        "annotations": {
+          "description": "Keeps track of changes in the nginx:stable image"
+        }
+      },
+      "spec": {
+        "tags": [
+          {
+            "name": "stable",
+            "from": {
+              "kind": "DockerImage",
+              "name": "nginx:stable"
+            },
+            "importPolicy": {
+              "scheduled": true
+            }
+          }
+        ]
+      }
+    },
+    {
+      "kind": "ImageStream",
+      "apiVersion": "v1",
+      "metadata": {
+        "name": "python",
+        "annotations": {
+          "description": "Keeps track of changes in the python image"
+        }
+      },
+      "spec": {
+        "tags": [
+          {
+            "name": "2.7-stretch",
+            "from": {
+              "kind": "DockerImage",
+              "name": "python:2.7-stretch"
+            },
+            "importPolicy": {
+              "scheduled": true
+            }
+          }
+        ]
+      }
+    },
     {
       "kind": "BuildConfig",
       "apiVersion": "v1",
@@ -131,6 +179,11 @@
         "strategy": {
           "type": "Docker",
           "dockerStrategy": {
+            "forcePull": true,
+            "from": {
+              "kind": "ImageStreamTag",
+              "name": "python:2.7-stretch"
+            },
             "env": [
                 {
                     "name": "EGO_SECRET_KEY",
@@ -211,7 +264,7 @@
           "dockerStrategy": {
             "forcePull": true,
             "from": {
-              "kind": "DockerImage",
+              "kind": "ImageStreamTag",
               "name": "nginx:stable"
             },
             "env": [


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