Files
odo/tests/examples/source/devfiles/nodejs/devfile-without-devinit.yaml
Girish Ramnani f40bf97099 List created components for devfile v2 (#3505)
* initial work on adding AppName

* completed the implementation and tests

* resolved failing tests

* reverting an un-necessary change

* dryed the tests

* added test for having both devfile and s2i together

* uncommented some stuff

* skip s2i test on kuberenetes

* resolved charlie's comments

* addressed mrinal's comments

* resolved the panic

* use client and dc support for specific cases

* resolved final tests and odo list now worked for unpushed components

* resolved failing unit tests

* update the component adapter in other places

* resolved all comments

* removed the created context at the end of the test

* addressed tomas's comment

* resolved all comments

* updated all devfiles with proper name

* resolved rebase

* addressed a missed error and more validation in the tests

* use random cmpName for tests
2020-07-22 15:38:38 +02:00

39 lines
902 B
YAML

schemaVersion: 2.0.0
metadata:
name: nodejs
projects:
- name: nodejs-starter
git:
location: "https://github.com/odo-devfiles/nodejs-ex.git"
components:
- container:
name: runtime
image: quay.io/eclipse/che-nodejs10-ubi:nightly
memoryLimit: 1024Mi
env:
- name: FOO
value: "bar"
endpoints:
- name: "3000/tcp"
configuration:
protocol: tcp
scheme: http
targetPort: 3000
mountSources: true
commands:
- exec:
id: devbuild
component: runtime
commandLine: npm install
workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
group:
kind: build
isDefault: true
- exec:
id: devrun
component: runtime
commandLine: npm start
workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
group:
kind: run
isDefault: true