Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add basic devfile and vscode settings to the repo #459

Open
wants to merge 7 commits into
base: devspaces-3-rhel-8
Choose a base branch
from

Conversation

mkuznyetsov
Copy link
Contributor

@mkuznyetsov mkuznyetsov commented Jun 8, 2023

Signed-off-by: Mykhailo Kuznietsov [email protected]

Add basic Devfile structure and vscode extension settings
It will be extended as more usage will occur

related issue: One of the previous DevTools Week Dogfooding sessions, where we were encouraged to create/update Devfiles for development

@mkuznyetsov mkuznyetsov requested a review from SDawley June 8, 2023 14:09
@mkuznyetsov mkuznyetsov marked this pull request as ready for review September 28, 2023 14:01
@mkuznyetsov mkuznyetsov changed the title [WIP] feat: add devfile and vscode settings to the repo feat: add devfile and vscode settings to the repo Sep 28, 2023
@mkuznyetsov mkuznyetsov changed the title feat: add devfile and vscode settings to the repo feat: add basic devfile and vscode settings to the repo Nov 8, 2023
devfile.yaml Outdated Show resolved Hide resolved
devfile.yaml Outdated
components:
- name: tools
container:
image: quay.io/devspaces/devspaces-images-dev:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When trying your PR on workspaces.openshift.com I get "Failed to pull image "quay.io/devspaces/devspaces-images-dev:latest": rpc error: code = Unknown desc = reading manifest latest in quay.io/devspaces/devspaces-images-dev: unauthorized: access to the requested resource is not authorized". Maybe the image is private or not pushed yet?

devfile.yaml Outdated
schemaVersion: 2.2.0
metadata:
name: devspaces-images
# add components:, unless basic udi component is good enough?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# add components:, unless basic udi component is good enough?

I think you can remove this no? If you have added the Dockerfile it's because you want go v1.18 (and currently basic udi has 1.19) right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it needs to be 1.19, similarly to how it is defined in upstream. it's probably better to hardcode it this way, as udi's golang version can go further (it is at 1.20 right now)

{
"recommendations": [
"rogalmic.bash-debug",
"redhat.vscode-yaml"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about golang/vscode-go


#install Go 1.18 (needed to work with devspaces-operator)
RUN cd /tmp && wget https://go.dev/dl/go1.18.6.linux-amd64.tar.gz && \
mkdir $HOME/go1.18 && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we update this to go 1.20 since that's what we're using downstream?

devfile.yaml Outdated
@@ -0,0 +1,43 @@
#
# Copyright (c) 2019-2021 Red Hat, Inc.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new file! old copywrong date.

devfile.yaml Outdated Show resolved Hide resolved
context: .
file: .devfile.Dockerfile
push: true
tags: quay.io/devspaces/devspaces-images-dev:latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be :next if it's CI?

components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you using the upstream UDI image in a devfile for the downstream UDI image?

# Red Hat, Inc. - initial API and implementation

# This container featres tools required for Devspaces Images
FROM quay.io/devfile/universal-developer-image:ubi8-latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is something you want to see built downstream, you aren't allowed to use FROM quay.io in OSBS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this image is not needed to be built downstream. It's only used as a tooling container, when this workspace will be used in Che/Devspaces

@nickboldt
Copy link
Member

Can you link to the relevant GH action and/or JIRA that explains why we are adding these files? Please provide better pull request description -- "It will be extended as more usage will occure" is not very clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants