Much to my dismay the OpenShift utility, oc tools are behind a firewall and are not accessible to the users of OpenShift < 3.2. So If you are using a version < 3.2 here is a quick way to share with your team.
-
git clone project
-
move files to oc-files/files directory
$ mv ~/path-to-utilities/oc-*-{linux,macosx}.tar.gz \ ~/path-to-oc-files/oc-files/files/ $ mv ~/path-to-utilities/oc-*-{windows}.zip \ ~/path-to-oc-files/oc-files/files/
=== OpenShift v3
-
login
$ oc login https://<server-name>:8443 -u <username> -p <passwd>
-
Create project
$ oc new-project oc-utilities
-
Add private key as ose secret
$ oc secrets new-sshauth sshsecret --ssh-privatekey=keys/id_rsa_spork secret/sshsporkkey
-
Create App
$ oc new-app oc-tools-webserver
-
Build docker file
$ docker build -t jmarley/oc-tools -f support/docker/httpd/Dockerfile . docker run -dit --name share-oc-tools -p 80:80 jmarley/oc-tools
-
Run docker container
$ docker run -dit --name share-oc-tools -p 80:80 jmarley/oc-tools