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

[devworkspaces] maven-based tasks don't work in a container, created from universal developer image #20699

Closed
vitaliy-guliy opened this issue Oct 27, 2021 · 0 comments
Assignees
Labels
area/plugins kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current

Comments

@vitaliy-guliy
Copy link
Contributor

Describe the bug

Maven don't work if it's a part of a task and is launched inside a container, created from universal-developer-image.

The problem faced when working on #20657

Che version

next (development version)

Steps to reproduce

  1. Deploy Che on devworkpsaces
  2. Create workspace using the devfile / repository https://github.com/vitaliy-guliy/java-guestbook/tree/run-maven-task
    ( should use quay.io/devfile/universal-developer-image:ubi8-112f94a )
  3. Run maven-build-backend command fron My Workspace view
  4. To play, run maven-test-backend command. It runs backend/test.sh script. It's possible to play with command and run them as a task.

Maven does not work for steps 3 ( screenshot 1 ) and 4.

  1. Open a terminal in maven container, go to backend directory and run mvn install. Maven must be launched.

maven-test-backend prints a list of environment variables. Run export in maven container and compare both lists.

a) see the differences between PATH variables for both terminals (screenshot 2 and 3)
b) JAVA_HOME is missing for `maven-test-backend ( compare by hands when reproduce the bug )


Everything is working if maven container is created using quay.io/eclipse/che-java11-maven:next image.

Expected behavior

Working maven for quay.io/devfile/universal-developer-image:ubi8-112f94a.

Runtime

minikube

Screenshots

Screenshot 1. Launching of maven-build-backend command.

Screenshot from 2021-10-27 18-02-20

Screenshot 2. PATH variable for terminal with maven-test-backend command

Screenshot from 2021-10-27 18-02-27

Screenshot 3. PATH variable for maven terminal, that has been opened by hands.

Screenshot from 2021-10-27 18-02-42

Installation method

chectl/next

Environment

Linux

Eclipse Che Logs

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugins kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current
Projects
None yet
Development

No branches or pull requests

2 participants