Skip to content

Commit

Permalink
[FIX] Updated OpenShift Template to take an Image as a Param (#9946)
Browse files Browse the repository at this point in the history
* Updated template to use ROCKETCHAT_IMAGE

The template now uses ROCKETCHAT_IMAGE as a parameter with rocketchat/rocket.chat as a default
  • Loading branch information
christianh814 authored and graywolf336 committed Apr 10, 2018
1 parent 792b10c commit 0ec458e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .openshift/rocket-chat-ephemeral.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"name": "rocketchat"
},
"spec": {
"dockerImageRepository": "registry.connect.redhat.com/rocketchat/rocketchat",
"dockerImageRepository": "${ROCKETCHAT_IMAGE}",
"tags": [
{
"name": "latest",
Expand Down Expand Up @@ -241,7 +241,7 @@
"containers": [
{
"name": "rocketchat",
"image": "registry.connect.redhat.com/rocketchat/rocketchat:latest",
"image": "${ROCKETCHAT_IMAGE}:latest",
"ports": [
{
"containerPort": 3000,
Expand Down Expand Up @@ -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",
Expand Down
11 changes: 9 additions & 2 deletions .openshift/rocket-chat-persistent.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"name": "rocketchat"
},
"spec": {
"dockerImageRepository": "registry.connect.redhat.com/rocketchat/rocketchat",
"dockerImageRepository": "${ROCKETCHAT_IMAGE}",
"tags": [
{
"name": "latest",
Expand Down Expand Up @@ -261,7 +261,7 @@
"containers": [
{
"name": "rocketchat",
"image": "registry.connect.redhat.com/rocketchat/rocketchat:latest",
"image": "${ROCKETCHAT_IMAGE}:latest",
"ports": [
{
"containerPort": 3000,
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 0ec458e

Please sign in to comment.