minademian / oc-ubuntu

This repository contains a customized Ubuntu Dockerfile to allow for Openshift Cluster to be installed and configured on it. It also includes Firefox so that you can access the Openshift Cluster GUI in the browser, once you have configured it. This is aimed for those who are unable to install Openshift locally on their machine!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Openshift and Firefox Ubuntu Docker Image

This repository contains a customized Ubuntu Dockerfile to allow for Openshift Cluster to be installed and configured on it. It also includes Firefox so that you can access the Openshift Cluster GUI in the browser, once you have configured it.

This is aimed for those who are unable to install Openshift locally on their machine!

Base Docker Image

Prerequisities

  1. Install Docker.
  2. Install a VNC client like VNC Viewer. You'll need this to use Firefox in the image.
  3. You need to register an account on the Red Hat Customer Portal. This will be used when the oc-setup.sh is run later in the process, you will need to login into Docker via the command-line in order to allow for Openshift to be installed.
  4. Save your username and password, you will need them in the next section.

Installation and Usage

  1. docker build -t oc-ubuntu .
  2. docker run -itd --privileged oc-ubuntu:latest /usr/sbin/init
  3. docker exec -it --privileged <container id> bash
  4. Run ./oc-setup.sh once you're logged in as root in the Docker image.
  5. Run the following commands in sequence:
    • tar -xzf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
    • cd openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit
    • cp oc kubectl /usr/local/bin/
    • oc version
    • systemctl restart docker
  6. In a separate tab or window of your command-line client, run docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container id>. Save the IP address somewhere, you will need it later when:
    • you launch the Openshift cluster inside the Docker image
    • and, you want to use Firefox from the VNC client

About

This repository contains a customized Ubuntu Dockerfile to allow for Openshift Cluster to be installed and configured on it. It also includes Firefox so that you can access the Openshift Cluster GUI in the browser, once you have configured it. This is aimed for those who are unable to install Openshift locally on their machine!

License:MIT License


Languages

Language:Shell 98.6%Language:Dockerfile 1.4%