Welcome to the OpenShift Quickstart workshop! This workshop is designed to provide you with a seamless development experience, whether you choose to work locally on your laptop or leverage the OpenShift DevSpaces Cloud IDE. Both environments are equipped to help you efficiently set up and manage your development projects with ease. Follow the instructions below to get started with your preferred setup.
Before proceeding, make sure you have Podman Desktop installed on your laptop. You can download and install it from the official website: (https://podman-desktop.io/)[Podman Desktop].
To run containers locally using Podman, you need to set up a Podman machine. This is a virtual machine that runs a Podman service, allowing you to manage containers as you would on a remote server.
-
Open your terminal: Ensure you have access to a terminal on your local machine.
-
Create a Podman machine: Use the following command to create a new Podman machine. This will set up a virtual environment for running containers.
podman machine init
-
Start the Podman machine: Once the machine is initialized, start it using the command below. This will boot up the virtual machine and prepare it for container operations.
podman machine start
-
Verify the machine status: Check the status of your Podman machine to ensure it is running correctly.
podman machine list
-
Connect to the Podman machine: You can now use Podman commands to manage containers on your machine. For example, to check the version of Podman running, use:
podman version
-
Open your terminal.
-
Choose your root workspace project:
- Decide on the directory where you want your root workspace to reside. This will be the main directory for your project files and configurations.
-
Navigate to the directory where you want to clone the project (e.g.
/projects). -
Run the following command to clone the Git repository:
cd /projects/ git clone https://github.com/openlab-red/openshift-quickstart.git git clone https://github.com/openlab-red/openshift-quickstart-manifest.git -
Open Visual Studio Code or your favourite IDEs:
code . -
Log into your OpenShift cluster at [OpenShift Console](https://console-openshift-console.{{ config.extra.base_url }}/).

-
Navigate to the DevSpaces dashboard.

Note: Even if working locally, having a DevSpaces namespace allows to have all necessary configuratin in place for the tutorial
To effectively work with OpenShift and the associated projects, ensure you have the following tools installed on your local machine:
The OpenShift CLI (oc) is a command-line tool that helps you manage OpenShift applications and the OpenShift container platform itself.
- Installation: You can download the
occlient directly from the [OpenShift Console](https://console-openshift-console.{{ config.extra.base_url }}/). Navigate to the question mark icon and select "Command Line Tools" to find the appropriate version for your operating system.
Helm is a package manager for Kubernetes that allows you to define, install, and upgrade even the most complex Kubernetes applications.
- Installation: Similar to the
occlient, Helm can also be downloaded from the [OpenShift Console](https://console-openshift-console.{{ config.extra.base_url }}/). Go to the question mark icon and choose "Command Line Tools" to access the Helm download options.
Kustomize is a tool for customizing Kubernetes configurations.
- Installation: You can install Kustomize by following the instructions on the Kustomize Installation page.
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine, essential for running JavaScript applications.
- Installation: Download and install Node.js from the official Node.js website.
Java is a high-level, class-based, object-oriented programming language that is widely used for building enterprise-scale applications.
- Installation: You can download the latest version of OpenJDK from the OpenJDK Downloads page.
Golang, or Go, is an open-source programming language that makes it easy to build simple, reliable, and efficient software.
- Installation: Visit the Go Downloads page to download and install Go on your machine.
OpenShift DevSpaces provides a cloud-based development environment using the configuration specified in the devfile.yaml.
Follow these steps to get started:
-
Log into your OpenShift cluster at [OpenShift Console](https://console-openshift-console.{{ config.extra.base_url }}/).

-
Create a new workspace by importing this repository URL:
https://github.com/openlab-red/openshift-quickstart.git
DevSpaces will automatically detect and use the devfile.yamlat the root of the project. -
The devfile configures:
- A developer container with ZSH shell
- Default workspace pointing to the project's VS Code workspace
- Required environment variables and configurations
-
Once the workspace starts:
Note: The devfile inherits configurations from a parent devfile that contains base developer tooling and settings.

