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

JetBrains editors should support running in UDI 9-based user's container #23335

Closed
azatsarynnyy opened this issue Feb 7, 2025 · 2 comments
Closed
Assignees
Labels
area/editor/jetbrains JetBrains IDEs support kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system.

Comments

@azatsarynnyy
Copy link
Member

When running a workspace with the following test Devfile:

schemaVersion: 2.2.2
metadata:
  name: private
attributes:
  controller.devfile.io/storage-type: ephemeral
components:
  - name: tools
    container:
      image: quay.io/devfile/universal-developer-image:ubi9-latest
      args: ['tail', '-f', '/dev/null']
      memoryRequest: 10Mi
      memoryLimit: 4G
      cpuRequest: 1000m
      cpuLimit: 2000m
commands:
  - id: package
    exec:
      label: "1. Package"
      component: tools
      workingDir: ${PROJECTS_ROOT}/inventory-quarkus
      commandLine: "./mvnw clean package -DskipTests=true"
      group:
        kind: build
        isDefault: true
  - id: runtests
    exec:
      label: "2. Run Tests"
      component: tools
      workingDir: ${PROJECTS_ROOT}/inventory-quarkus
      commandLine: "./mvnw test"
      group:
        kind: test
  - id: startdev
    exec:
      label: "3. Start Development mode (Hot reload + debug)"
      component: tools
      workingDir: ${PROJECTS_ROOT}/inventory-quarkus
      commandLine: "./mvnw compile quarkus:dev"
      group:
        kind: run
        isDefault: true
  - id: buildimage
    exec:
      label: "4. Build Image"
      component: tools
      workingDir: ${PROJECT_SOURCE}
      commandLine: |
        IMAGE=image-registry.openshift-image-registry.svc:5000/openshift/quarkus-api-example
        podman build -f src/main/docker/Dockerfile.jvm -t "${IMAGE}" .
      group:
        kind: build
  - id: pushimage
    exec:
      label: "5. Push Image"
      component: tools
      commandLine: |
        # Requires `oc policy add-role-to-user registry-editor <user_name> -n openshift`
        IMAGE=image-registry.openshift-image-registry.svc:5000/openshift/quarkus-api-example
        podman login --tls-verify=false -u $(oc whoami) -p $(oc whoami -t) image-registry.openshift-image-registry.svc:5000
        podman push --tls-verify=false "${IMAGE}"
      group:
        kind: build

There's an error:

Image

@azatsarynnyy azatsarynnyy added area/editor/jetbrains JetBrains IDEs support kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. labels Feb 7, 2025
@azatsarynnyy azatsarynnyy self-assigned this Feb 7, 2025
@azatsarynnyy azatsarynnyy changed the title JetBrains editors should support running in U*D*I 9-based user's container JetBrains editors should support running in UDI 9-based user's container Feb 7, 2025
@ibuziuk
Copy link
Member

ibuziuk commented Feb 10, 2025

👍 Gateway should work with both universal and base images from https://github.com/devfile/developer-images

@azatsarynnyy azatsarynnyy moved this from Unplanned to 🚧 In Progress in Eclipse Che Team B Backlog Feb 11, 2025
@azatsarynnyy
Copy link
Member Author

@github-project-automation github-project-automation bot moved this from 🚧 In Progress to ✅ Done in Eclipse Che Team B Backlog Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/jetbrains JetBrains IDEs support kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system.
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants