From 5ed4b9fac9d911fcd52f215531fff4dc4cf0986f Mon Sep 17 00:00:00 2001 From: Christian Hernandez Date: Wed, 28 Feb 2018 10:41:15 -0800 Subject: [PATCH 1/2] Updated template to use ROCKETCHAT_IMAGE Set image as a perameter with it defaulting to rocketchat/rocket.chat --- .openshift/rocket-chat-ephemeral.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.openshift/rocket-chat-ephemeral.json b/.openshift/rocket-chat-ephemeral.json index 2c5cd26e68fba..dd25e870ff64c 100644 --- a/.openshift/rocket-chat-ephemeral.json +++ b/.openshift/rocket-chat-ephemeral.json @@ -151,7 +151,7 @@ "name": "rocketchat" }, "spec": { - "dockerImageRepository": "registry.connect.redhat.com/rocketchat/rocketchat", + "dockerImageRepository": "${ROCKETCHAT_IMAGE}", "tags": [ { "name": "latest", @@ -241,7 +241,7 @@ "containers": [ { "name": "rocketchat", - "image": "registry.connect.redhat.com/rocketchat/rocketchat:latest", + "image": "${ROCKETCHAT_IMAGE}:latest", "ports": [ { "containerPort": 3000, @@ -424,6 +424,13 @@ "value": "rocketchatdb", "required": true }, + { + "name": "ROCKETCHAT_IMAGE", + "displayName": "RocketChat Image", + "description": "The RocketChat image to use for this deployment", + "required": true, + "value": "rocketchat/rocket.chat" + }, { "name": "MONGODB_ADMIN_PASSWORD", "displayName": "MongoDB Admin Password", From ac6d37a03e2d93d6f5312026c6c6a552b372c1d0 Mon Sep 17 00:00:00 2001 From: Christian Hernandez Date: Wed, 28 Feb 2018 10:42:50 -0800 Subject: [PATCH 2/2] Updated template to use ROCKETCHAT_IMAGE The template now uses ROCKETCHAT_IMAGE as a parameter with rocketchat/rocket.chat as a default --- .openshift/rocket-chat-persistent.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.openshift/rocket-chat-persistent.json b/.openshift/rocket-chat-persistent.json index 150347e5165a0..fe2a992ef2325 100644 --- a/.openshift/rocket-chat-persistent.json +++ b/.openshift/rocket-chat-persistent.json @@ -171,7 +171,7 @@ "name": "rocketchat" }, "spec": { - "dockerImageRepository": "registry.connect.redhat.com/rocketchat/rocketchat", + "dockerImageRepository": "${ROCKETCHAT_IMAGE}", "tags": [ { "name": "latest", @@ -261,7 +261,7 @@ "containers": [ { "name": "rocketchat", - "image": "registry.connect.redhat.com/rocketchat/rocketchat:latest", + "image": "${ROCKETCHAT_IMAGE}:latest", "ports": [ { "containerPort": 3000, @@ -452,6 +452,13 @@ "from": "[a-zA-Z0-9]{16}", "required": true }, + { + "name": "ROCKETCHAT_IMAGE", + "displayName": "RocketChat Image", + "description": "The RocketChat image to use for this deployment", + "required": true, + "value": "rocketchat/rocket.chat" + }, { "name": "VOLUME_CAPACITY", "displayName": "Volume Capacity",