Your first-day experience
OpenShift Dev Spaces creates a cloud development environment (CDE) for your project. The dashboard and CLI refer to each CDE as a workspace. Each cloud development environment runs as an OpenShift DevWorkspace custom resource on your cluster. You go from login to coding in about three minutes.
From URL to code in four steps Copy linkLink copied!
When your administrator shares the OpenShift Dev Spaces dashboard URL, you go from login to coding in four steps:
- Authenticate with OpenShift — OpenShift Dev Spaces redirects you to the OpenShift OAuth login page. Enter your OpenShift credentials and authorize OpenShift Dev Spaces to access your account.
- Create Workspace page — After authentication, you land on the Create Workspace page. The page has two main sections:
- Git Repo URL — A field where you paste the HTTPS or SSH URL of your Git repository.
- Select a Sample — Pre-configured samples for languages and frameworks such as Java, Node.js, Python, and Go. Use these to explore OpenShift Dev Spaces without connecting your own repository.
- Start your cloud development environment — When you enter a Git URL and click Create & Open, OpenShift Dev Spaces asks you to confirm that you trust the repository authors, then provisions the cloud development environment.
- IDE loads in your browser — The default IDE, Microsoft Visual Studio Code - Open Source, opens in your browser tab with the repository already cloned.
Why the first start takes longer Copy linkLink copied!
The first cloud development environment start takes approximately 2-3 minutes because OpenShift Dev Spaces pulls container images to the cluster node. The starting page displays real-time progress, including:
- Volume provisioning for persistent storage
- Container image pulls for the development tools and IDE
- Initialization of the project clone, home directory, and IDE server
Subsequent starts are faster because OpenShift caches the container images on the node. If your administrator has deployed the Image Puller, images are pre-cached across all nodes for near-instant starts.
Administrators can reduce first-start times by pre-caching container images on cluster nodes.
What you can do in a cloud development environment Copy linkLink copied!
A running cloud development environment provides:
- Terminal
-
A
bashterminal in the IDE with your project directory as the working directory. The terminal prompt shows the current Git branch. - Git integration
- Your repository is cloned into the cloud development environment filesystem. If your administrator has configured OAuth for your Git provider, you can push commits without re-entering credentials.
- Development tools
-
The Universal Developer Image (UDI) includes compilers, runtimes, and build tools for common languages. Your project’s
devfile.yamlcan define additional tools and commands. - CDE URL
-
Each cloud development environment has a unique URL in the format
https://<openshift_dev_spaces_fqdn>/<user_name>/<workspace_name>/. Bookmark this URL to return to a running cloud development environment.
Troubleshoot common issues Copy linkLink copied!
-
Cloud development environment fails to start with
OOMKilledorFailedScheduling - Your namespace exceeded its resource quota, or the cloud development environment requested more memory or CPU than the cluster allows. Contact your administrator to adjust resource limits.
-
Git push returns
401 Unauthorizedor403 Forbidden - OAuth is not configured for your Git provider, or your token has expired. Configure authentication to resolve this issue.
-
Blank IDE with a
Could not register service workerserror - This error occurs in Google Chrome Incognito mode or Mozilla Firefox Private Browsing mode. Use a regular browser window instead.