8

Sharing your Container Development Environment with Red Hat Openshift Dev Spaces...

 2 years ago
source link: https://developers.redhat.com/crw-fmi
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

“It works on my machine.” If you write code with, for, or near anybody else, you’ve said those words at least once. Months ago I set up a library or package or environment variable or something on my machine and I haven’t thought about it since. So the code works for me, but it may take a long time to figure out what’s missing on your machine.

Share workspaces with Factories

Share workspaces with Factories

Built on the open-source Eclipse Che project, Red Hat Openshift Dev Spaces solves this problem (and a couple of others that we’ll talk about in a minute) by delivering secure, sharable developer workspaces. Those workspaces include all the tools and dependencies needed to code, build, test, run, and debug your applications. The entire product runs in an OpenShift cluster (on-premises or in the cloud), so there’s nothing to install on your machine. Or mine.

Openshift Dev Spaces also makes onboarding easy. You can create a factory based on a workspace. Any authorized person on your team can open the factory’s URL and get a new copy of that workspace. To make the factory even more powerful, you can have it do certain tasks when a user creates a new workspace. As an example, when the new workspace is created, you can have the factory clone a repo, open some files, build them, start a server in the workspace, and deploy code to that local server. Your teammate gets on board within minutes, they have the source in front of them, and they can work with the deployed code right away.

Configure workspaces with stacks

Configure workspaces with stacks

Underneath each workspace is a stack, a container image that includes language runtimes, compilers, tools, and utilities. Openshift Dev Spaces ships with stacks for many different languages. Stacks can go beyond just language support, however. A stack can contain multiple containers, allowing you to code in a replica of your production environment. A single stack might have compilers, tools, and an app server in one container and a database in the other.

Even better, you can create custom stacks and share those with your team. If you have a project that requires tools that aren’t part of one of the base stacks, you can take a base stack’s container, add whatever you need to that container, and use the new container image as the base of a new stack. Assuming everyone on your team uses that custom stack, you know everyone has the same libraries, runtimes, and tools.

If you suspect you’ll need a custom stack for your project, below is a video showing you how to create one. The example in the video builds a C++ version of the 2048 game, so you can play and pretend to work while learning.

By the way: Openshift Dev Spaces delivers a full-featured IDE that includes code completion, syntax highlighting, refactoring, debugging, and everything else you would expect from a great development environment. (Although you can use SSH to access your workspaces from Eclipse and other tools if you prefer.)

Securing your code

Securing your code

Another development issue is securing the source code and other intellectual property stored on laptops. With Openshift Dev Spaces, the working copy of the code is centrally managed on the OpenShift cluster where the developer workspace runs. There is nothing on the local machine anymore. Your laptops might be anywhere, but you always know where your source code is.

Get started!

Get started!

Best of all, it’s easy to sign up for the beta. Visit the product page to get the code and everything you’ll ever need to know about the product.

Openshift Dev Spaces gives you greater security, faster onboarding, and makes sure your code works on their machines too.

Last updated: June 30, 2022


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK