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

[k8s plugin] Kubernetes: Run/Debug commands can't locate a project's Dockerfile #13345

Closed
azatsarynnyy opened this issue May 16, 2019 · 1 comment
Assignees
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.

Comments

@azatsarynnyy
Copy link
Member

azatsarynnyy commented May 16, 2019

Steps to reproduce:
1/ Create a Workspace from the Devfile https://github.com/azatsarynnyy/devfiles/blob/master/k8s-devfile.yml
2/ Inject your local kubeconfig into the running Workspace with chectl workspace:inject and refresh the browser's page
3/ Call the Kubernetes: Run or Kubernetes: Debug command

The command is failed with the error:
error reading info about "/projects/projects/Dockerfile": stat /projects/projects/Dockerfile: no such file or directory

The command tries to find a Dockerfile in nonexistent /projects/projects folder instead of /projects/simple-nodejs-weather-app folder.

@azatsarynnyy azatsarynnyy added kind/task Internal things, technical debt, and to-do tasks to be performed. team/ide labels May 16, 2019
@azatsarynnyy azatsarynnyy self-assigned this May 16, 2019
@azatsarynnyy azatsarynnyy changed the title [k8s plugin] Kubernetes: Run command can't locate a project's Dockerfile [k8s plugin] Kubernetes: Run/Debug commands can't locate a project's Dockerfile May 16, 2019
@azatsarynnyy
Copy link
Member Author

Kubernetes: Run command tries to find a Dockerfile into Theia workspace root folder which is /projects by default.
Since /projects is a parent folder for all of the projects in Che Workspace, in order to use Kubernetes: Run command the user needs to open a particular folder as a Theia workspace root folder with File > Open Workspace... menu item. After that step, an image build is starting successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

No branches or pull requests

1 participant