OpenShift
This repository hosts some templates for provision Rocket.Chat in OpenShift.

Installation on Container Development Kit (CDK)

  • Download and install CDK
  • Download and install the OpenShift Client tool
  • Run OpenShift vagrant machine
  • Pull the Rocket.Chat Docker image from Docker Hub and tag/push to the internal OpenShift registry:
1
docker pull registry.rocket.chat/rocketchat/rocket.chat
2
docker tag rocketchat/rocket.chat hub.openshift.rhel-cdk.10.1.2.2.xip.io/openshift/rocket-chat
3
docker push hub.openshift.rhel-cdk.10.1.2.2.xip.io/openshift/rocket-chat
Copied!
  • Login in OpenShift and create a new project in OpenShift
1
oc login -u openshift-devel https://10.1.2.2:8443
2
oc new-project rocket-chat
Copied!
  • Clone this repo and add the templates and ImageStream to openshift namespace:
1
git clone https://github.com/rimolive/rocketchat-openshift
2
oc create -n openshift -f rocket-chat-is.json
3
oc create -n openshift -f rocket-chat-ephemeral.json
Copied!
  • Create the rocket-chat app:
1
oc new-app rocket-chat -p MONGODB_DATABASE=rocketchat,MONGODB_USER=rocketchat-admin,MONGODB_PASS=rocketchat
Copied!
  • Rocket.Chat uses a domain check code to verify the validity of the e-mail address. To disable it, run the following commands:
1
oc port-forward <mongodb_pod> 27017
2
mongo localhost:27017
Copied!
Inside the mongo client:
1
use rocketchat
2
db.auth('rocketchat-admin','rocketchat')
3
db.rocketchat_settings.update({_id:'Accounts_UseDNSDomainCheck'},{$set:{value:false}})
Copied!