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

workdir on a devfile is ignored #12853

Closed
gorkem opened this issue Mar 10, 2019 · 6 comments
Closed

workdir on a devfile is ignored #12853

gorkem opened this issue Mar 10, 2019 · 6 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@gorkem
Copy link
Contributor

gorkem commented Mar 10, 2019

Created a workspace with the following and the run and build commands specified fails because they are run on the /projects folder

---
specVersion: 0.0.1
name: nodejs-rest-http
projects:
  - name: node-rest
    source:
      type: git
      location: "https://github.com/nodeshift-starters/nodejs-rest-http.git"
tools:
  - name: theia-editor
    type: cheEditor
    id: org.eclipse.che.editor.theia:master
  - name: exec-plugin
    type: chePlugin
    id: che-machine-exec-plugin:0.0.1
  - name: typescript
    type: chePlugin
    id: ms-vscode.typescript:1.30.2
  - name: node-runtime
    type: dockerimage
    image: eclipse/centos_nodejs
    env:
      - name: PORT
        value: "8080"
    endpoints:
      - name: express-server
        port: 8080
        attributes:
          protocol: http
          secure: "true"
          public: "true"
          discoverable: "false"
    memoryLimit: 256M
    mountSources: true
commands:
  - name: build
    actions:
      - type: exec
        tool: node-runtime
        command: npm install
        workdir: /projects/node-rest
  - name: run
    actions:
      - type: exec
        tool: node-runtime
        command: npm start
        workdir: /projects/node-rest
@gorkem gorkem added the kind/bug Outline of a bug - must adhere to the bug report template. label Mar 10, 2019
@skabashnyuk
Copy link
Contributor

That is a known issue. Depends on #11866

@l0rd
Copy link
Contributor

l0rd commented Mar 11, 2019

cc @evidolob @AndrienkoAleksandr

@AndrienkoAleksandr
Copy link
Contributor

#11866 in progress.

@sleshchenko
Copy link
Member

Should be fixed now. @AndrienkoAleksandr Can you confirm?

@AndrienkoAleksandr
Copy link
Contributor

It should work.

@sleshchenko
Copy link
Member

checked. It works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

5 participants