-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make odo dev work if no endpoint is defined (#6472)
* odo dev works if no endpoint is defined * Update tests/integration/cmd_dev_test.go Co-authored-by: Armel Soro <armel@rm3l.org> * Add log when no port to forward Co-authored-by: Armel Soro <armel@rm3l.org>
- Loading branch information
Showing
5 changed files
with
94 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
tests/examples/source/devfiles/nodejs/devfile-no-endpoint.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
schemaVersion: 2.0.0 | ||
metadata: | ||
name: nodejs | ||
projectType: nodejs | ||
language: nodejs | ||
starterProjects: | ||
- name: nodejs-starter | ||
git: | ||
remotes: | ||
origin: "https://github.com/odo-devfiles/nodejs-ex.git" | ||
components: | ||
- name: runtime | ||
container: | ||
image: registry.access.redhat.com/ubi8/nodejs-12:1-36 | ||
memoryLimit: 1024Mi | ||
mountSources: true | ||
commands: | ||
- id: devbuild | ||
exec: | ||
component: runtime | ||
commandLine: npm install | ||
workingDir: ${PROJECTS_ROOT} | ||
group: | ||
kind: build | ||
isDefault: true | ||
- id: build | ||
exec: | ||
component: runtime | ||
commandLine: npm install | ||
workingDir: ${PROJECTS_ROOT} | ||
group: | ||
kind: build | ||
- id: devrun | ||
exec: | ||
component: runtime | ||
commandLine: npm start | ||
workingDir: ${PROJECTS_ROOT} | ||
group: | ||
kind: run | ||
isDefault: true | ||
- id: run | ||
exec: | ||
component: runtime | ||
commandLine: npm start | ||
workingDir: ${PROJECTS_ROOT} | ||
group: | ||
kind: run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters