Coder Social home page Coder Social logo

crw-disconnected's Introduction

Install CodeReady Workspaces in disconnected environment

This tutorial shows the whole procedure to install a CodeReady Workspaces 2.0 in a disconnected environment.

Prerequisites:

  1. OC CLI : https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/
  2. Skopeo : https://github.com/nmasse-itix/OpenShift-Examples/tree/master/Using-Skopeo

Set a registry to store all images needed to install CRW

On your MacOS terminal:

To use internal registry OpenShift, expose the registry service as followed :

oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge

More info here : https://docs.openshift.com/container-platform/4.2/registry/securing-exposing-registry.html

Set OpenShift internal registry hostname env variable

export OCP_REGISTRY=$(oc get route default-route -n openshift-image-registry --template='{{ .spec.host }}')

Feed internal registry with Skopeo

Pull images from Red Hat registry registry.redhat.io and copy them to the internal registry with skopeo and podman

Set access token for registry.redhat.io with a service account https://access.redhat.com/terms-based-registry/#/create

export RH_TOKEN="user_name|my_token"

Set access token for OpenShift

export OCP_TOKEN=$(oc whoami)\|$(oc whoami -t)

Run the script feed_registry.sh

. feed_registry.sh

Run CodeReady Workspaces installation

Download CodeReady Workspaces CLI to run the disconnected installation from your laptop: All CLI are available here : https://developers.redhat.com/products/codeready-workspaces/download Download the CLI for MacOS:

curl https://developers.redhat.com/download-manager/file/codeready-workspaces-2.0.0-crwctl-darwin-x64.tar.gz --output crw.tar.gz

Uncompress it

tar -xvf crw.tar.gz

Move it a dedicated folder. For instance

mv crwctl $HOME

Add it to your PATH

export PATH="$HOME/crwctl/bin:$PATH"

Make sure you are logged in OpenShift

oc login -u my_user -p password https://api_hostname:6443 

Run the following crwctl command

crwctl server:start   --che-operator-image=image-registry.openshift-image-registry.svc:5000/openshift/server-operator-rhel8:2.0   --che-operator-cr-yaml=org_v1_che_cr.yaml

logo

More info about CodeReady Workspaces Disconnected can be found here : https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.0/html/installation_guide/installing-codeready-workspaces-in-a-restricted-environment

crw-disconnected's People

Contributors

gestrem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.