-
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.
One more attempt at fixing integration test for podman
Signed-off-by: Parthvi Vala <pvala@redhat.com>
- Loading branch information
1 parent
a9c4a4e
commit 5ce3198
Showing
2 changed files
with
113 additions
and
18 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
tests/examples/source/devfiles/nodejs/devfile-container-override-on-podman.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,82 @@ | ||
commands: | ||
- exec: | ||
commandLine: npm install | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: build | ||
workingDir: ${PROJECT_SOURCE} | ||
id: install | ||
- exec: | ||
commandLine: npm start | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: run | ||
workingDir: ${PROJECT_SOURCE} | ||
id: run | ||
- exec: | ||
commandLine: npm run debug | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: debug | ||
workingDir: ${PROJECT_SOURCE} | ||
id: debug | ||
- exec: | ||
commandLine: npm test | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: test | ||
workingDir: ${PROJECT_SOURCE} | ||
id: test | ||
components: | ||
- container: | ||
args: | ||
- tail | ||
- -f | ||
- /dev/null | ||
endpoints: | ||
- name: http-node | ||
targetPort: 3000 | ||
- exposure: none | ||
name: debug | ||
targetPort: 5858 | ||
env: | ||
- name: DEBUG_PORT | ||
value: "5858" | ||
image: registry.access.redhat.com/ubi8/nodejs-16:latest | ||
memoryLimit: 1024Mi | ||
mountSources: true | ||
attributes: | ||
container-overrides: | ||
securityContext: | ||
runAsUser: 1001 | ||
runAsGroup: 1001 | ||
name: runtime | ||
- kubernetes: | ||
inlined: | | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: new-service-account | ||
name: service-account | ||
metadata: | ||
description: Stack with Node.js 16 | ||
displayName: Node.js Runtime | ||
icon: https://nodejs.org/static/images/logos/nodejs-new-pantone-black.svg | ||
language: JavaScript | ||
name: my-node-app | ||
projectType: Node.js | ||
tags: | ||
- Node.js | ||
- Express | ||
- ubi8 | ||
version: 2.1.1 | ||
schemaVersion: 2.1.0 | ||
starterProjects: | ||
- git: | ||
remotes: | ||
origin: https://github.com/odo-devfiles/nodejs-ex.git | ||
name: nodejs-starter |
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