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

Add devfile.yaml v2 #1

Merged
merged 7 commits into from
Nov 24, 2021
Merged

Add devfile.yaml v2 #1

merged 7 commits into from
Nov 24, 2021

Conversation

sideeffffect
Copy link

No description provided.

@sideeffffect sideeffffect changed the title Create extensions.json Add devfile.yaml Oct 29, 2021
@sideeffffect sideeffffect changed the title Add devfile.yaml Add devfile.yaml v2 Oct 29, 2021
size: 1G
- name: bloop
volume:
size: 1G
Copy link

@svor svor Nov 1, 2021

Choose a reason for hiding this comment

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

It's not possible to start the workspace because of

Error provisioning storage: Could not rewrite container volume mounts: container 'tools' references undefined volume 'cache'

Initializing DevWorkspace

Error provisioning storage: Could not rewrite container volume mounts: container 'tools' references undefined volume 'cache'

Try to add volume

- name: cache
  path: /home/user/.cache

and

  - name: cache
    volume:
      size: 1G

Copy link
Author

Choose a reason for hiding this comment

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

Done. Thanks for the tip. Where can I see if it works or not?

Copy link

Choose a reason for hiding this comment

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

To deploy Che with Devworkspace engine you need to select a dedicated OperatorHub channel. Devsandbox doesn't provide it yet. Some more info for Che: https://che.eclipseprojects.io/2021/10/12/@mario.loriedo-devfile-v2-and-the-devworkspace-operator-p1.html

@sideeffffect sideeffffect requested a review from svor November 2, 2021 14:34
devfile.yaml Outdated Show resolved Hide resolved
@svor
Copy link

svor commented Nov 8, 2021

@sideeffffect could you please update the image for dev-container to use the universal-developer-image and I'll merge the PR

Co-authored-by: Valeriy Svydenko <[email protected]>
@sideeffffect
Copy link
Author

Done, thanks!

@sideeffffect
Copy link
Author

Btw, I've also opened a PR to add sbt launch script to the universal-developer-images
devfile/developer-images#8

@svor
Copy link

svor commented Nov 16, 2021

Btw, I've also opened a PR to add sbt launch script to the universal-developer-images devfile/developer-images#8

thanks, merged.
Developer image with your changes was built, now you can use it in your devfile: quay.io/devfile/universal-developer-image:ubi8-3df780e

@svor
Copy link

svor commented Nov 16, 2021

@sideeffffect thank you for updating, I've tried to execute commands from the devfile but run and package were failed:
screenshot-che-eclipse-che apps cluster-g4gvv g4gvv sandbox1864 opentlc com-2021 11 16-20_39_20
screenshot-che-eclipse-che apps cluster-g4gvv g4gvv sandbox1864 opentlc com-2021 11 16-20_39_40

Do you have an idea what could be wrong?

@sideeffffect
Copy link
Author

Sorry for replying so late.
I've fixed the issue with package here in this PR. run is fixed in #2

@svor
Copy link

svor commented Nov 24, 2021

Tested build and package commands, they work well:
screenshot-che-eclipse-che apps cluster-zpz7w zpz7w sandbox1601 opentlc com-2021 11 24-11_19_58

devfile.yaml Outdated Show resolved Hide resolved
@svor svor merged commit 165909e into che-samples:master Nov 24, 2021
@sideeffffect sideeffffect deleted the patch-1 branch November 24, 2021 13:20
@sideeffffect
Copy link
Author

sideeffffect commented Nov 24, 2021

When will I be able to see scala-sbt as of of the samples in CodeReady Workspaces/Developer Snadbox in OpenShift?

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.

2 participants