Red Hat OpenShift Dev Spaces

  Рет қаралды 3,145

Cloud-Native Development

Cloud-Native Development

Күн бұрын

Пікірлер: 15
@MikeEovino-s2o
@MikeEovino-s2o Жыл бұрын
Great info! Thanks for sharing this.
@BrandYourself-ey6er
@BrandYourself-ey6er Жыл бұрын
If you have 3 repos. Are you able to run each repo in the same workspace? For example if you are working on multiple applications
@CloudNativeDevelopment
@CloudNativeDevelopment Жыл бұрын
Great question! You absolutely can. The way to accomplish this is by just adding multiple attributes under the projects section, you can see an example in the Random Thoughts repo from the video here: github.com/cgruver/che-demo-app/blob/main/devfile.yaml#L6 or if you prefer the devfile docs: devfile.io/docs/2.2.1/adding-projects , just scroll down to the "A devfile with multiple projects section". One thing to note, by default only the first project listed will show in the editor when the workspace starts up. There are 2 options to fix this. First, you can manually add the folder through the editor, by default all projects are cloned into the "/projects" directory. The other option is to automate! You can create a code-workspace, Random Thoughts example: github.com/cgruver/che-demo-app/blob/main/che-demo.code-workspace#L2 , file to define your settings and store it in one of the git repos for your project, my preference is the one the devfile lives in, from there you can either manually load it once with the workspace starts by selecting it in the editor, or for extra style points add an env variable in your devfile to load it automatically, for an example of that check this: github.com/NateLove/quarkus-kafka/blob/main/devfile.yaml#L11 .
@kuyokuSan
@kuyokuSan 9 ай бұрын
sudo passw?
@CloudNativeDevelopment
@CloudNativeDevelopment 9 ай бұрын
Sorry, but I am not sure I understand the question... Could you clarify?
@kuyokuSan
@kuyokuSan 9 ай бұрын
​@@CloudNativeDevelopment how to get sudo?
@CloudNativeDevelopment
@CloudNativeDevelopment 9 ай бұрын
@@kuyokuSanYou wouldn't give users of DevSpaces super-user access. It would be an anti-pattern and would not provide any significant value to the users. Could it be done? Perhaps. I would recommend against it as it provides too many possible exploitation possibilities. It would help if you were to explain why you want to grant superuser privileges.
@mervenazmumcu8096
@mervenazmumcu8096 Ай бұрын
@@CloudNativeDevelopment Hello, I want to upgrade my Go version, so I plan to remove the old version and add the latest Go version to my PATH. But do I need to be root for this? How can I upgrade my Go version?
@CloudNativeDevelopment
@CloudNativeDevelopment 29 күн бұрын
@@mervenazmumcu8096 you would need to rebuild the Dev Spaces base image... There should be newer based images released and in the registry on a regular basis, so you should be able to update your DevFile to point to the newer image with the newer version of Go.
@jorgeadrian93
@jorgeadrian93 Жыл бұрын
How do you configure to automatically run the workspace on startup? At minute 15:35 the workspace changes to /?workspace=/projects/che-demo-app/che-demo.code-workspace
@CloudNativeDevelopment
@CloudNativeDevelopment Жыл бұрын
Great question, there is an environment variable you can define in your define to apply a default code workspace config. The variable is VSCODE_DEFAULT_WORKSPACE, and you can see an example of that here: github.com/NateLove/quarkus-kafka/blob/main/devfile.yaml#L11
@jorgeadrian93
@jorgeadrian93 Жыл бұрын
​@@CloudNativeDevelopment That's awesome! Thanks for the quick reply. I updated my devfile, committed and pushed to the fork and I noticed that I need to delete the current workspace and load it again. Do you know if there is any way to reload the latest version of the devfile without creating a workspace from scratch?
@CloudNativeDevelopment
@CloudNativeDevelopment Жыл бұрын
@@jorgeadrian93 Another great question. As of version 3.7 I believe of the operator they added an option to restart from local devfile. If you click on the button in the lower left where it says Dev Spaces, that should open the menu and give you the option to restart from there. Word of caution though, before doing this make sure to push any code changes, if you accidentally make a change to the devfile that can break the workspace it can be tough to recover.
@jorgeadrian93
@jorgeadrian93 Жыл бұрын
@@CloudNativeDevelopment Very neat ... thanks for sharing 😁Where do you get those tips and tricks? I don't see them in the documentation.
@CloudNativeDevelopment
@CloudNativeDevelopment Жыл бұрын
@@jorgeadrian93 well I've been fortunate to be able to work directly with the engineering team, so I've learned a lot from them. I will say they do try to announce the new features with the release notes so I did find the workspace info there access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.7/html/release_notes_and_known_issues/new-features#enhancement-crw-4531, but it's a newer feature so it may take some time for it to make it to the official docs.
Why Corporate Owned Linux Distributions like Red Hat are a Bad Idea
23:46
Introduction To Tekton Task
21:51
Cloud-Native Development
Рет қаралды 1,9 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 19 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 5 МЛН
Devfile: Dev environment as code
26:34
Kubernetes Community Days Bengaluru
Рет қаралды 510
A tour of OpenShift Dev Spaces
10:03
OpenShift
Рет қаралды 1,4 М.
Ollama on Kubernetes: ChatGPT for free!
18:29
Mathis Van Eetvelde
Рет қаралды 10 М.
OpenShift Dev Spaces Devfile Tour
31:33
Upstream Without A Paddle
Рет қаралды 196
OpenShift Dev Spaces / Eclipse Che and Ansible Development
10:26
What is Red Hat OpenShift Data Science?
21:34
OpenShift
Рет қаралды 2,7 М.
What is OpenShift?
7:04
IBM Technology
Рет қаралды 679 М.
Setting up Kubernetes on AWS 🚀
47:32
Tyrone Smith
Рет қаралды 43