Skip to content

Latest commit

 

History

History

openshift-cli-homebrew

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

OpenShift CLI (via Homebrew) (openshift-cli-homebrew)

OpenShift is a unified platform to build, modernize, and deploy applications at scale

Example Usage

"features": {
    "ghcr.io/paul-gilber/devcontainer-features/openshift-cli-homebrew:1": {}
}

Options

Options Id Description Type Default Value
version Select the version to install. string latest

Connecting to OpenShift Local

Red Hat OpenShift Local is the quickest way to get started building OpenShift clusters. It is designed to run on a local computer to simplify setup and testing, and to emulate the cloud development environment locally with all of the tools needed to develop container-based applications.

Prerequisites:

  1. Docker Desktop
  2. Red Hat OpenShift Local

Steps:

  1. Use Kubernetes - Local Configuration devcontainer profile to automatically copy localhost ~/.kube/config to the devcontainer
  2. Create .devcontainer/compose.yaml
# .devcontainer/compose.yaml
---
services:
  devcontainer:
    image: mcr.microsoft.com/devcontainers/base:bullseye
    volumes:
      - ../..:/workspaces:cached
    command: sleep infinity
    extra_hosts:
      - "api.crc.testing:host-gateway"    # forwards api.crc.testing to docker host gateway
  1. Update .devcontainer/devcontainer.json
// .devcontainer/devcontainer.json
{
	// Comment `image` field
	// "image": "mcr.microsoft.com/devcontainers/base:bullseye",

	// Add `dockerComposeFile`, `service`, `workspaceFolder` fields
	"dockerComposeFile": "compose.yaml",
	"service": "devcontainer",
	"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
}

Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.