Last active
February 3, 2021 06:23
-
-
Save arajkumar/09d753153cb065622fa295f1caf2999c to your computer and use it in GitHub Desktop.
0.3.1-meta.yaml
This file contains hidden or 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
apiVersion: v2 | |
publisher: redhat | |
name: dependency-analytics | |
version: 0.3.1 | |
type: VS Code extension | |
displayName: Dependency Analytics | |
title: Insights about your application dependencies | |
description: Insights about your application dependencies, Security, License compatibility and AI based guidance to choose appropriate dependencies for your application. | |
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg | |
repository: https://github.com/fabric8-analytics/fabric8-analytics-vscode-extension | |
category: Other | |
firstPublicationDate: '2019-09-12' | |
spec: | |
containers: | |
- image: "quay.io/eclipse/che-sidecar-dependency-analytics:0.0.13-9e9c7a9" | |
memoryLimit: "256Mi" | |
extensions: | |
- https://download.jboss.org/jbosstools/vscode/stable/vscode-dependency-analytics/fabric8-analytics-0.3.1-15.vsix |
This file contains hidden or 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
metadata: | |
name: nodejs-snyk-demo | |
attributes: | |
persistVolumes: 'true' | |
projects: | |
- name: nodejs-web-app | |
source: | |
location: 'https://github.com/pdaverh/snyk-demo' | |
type: git | |
branch: master | |
components: | |
- type: chePlugin | |
reference: >- | |
https://gist.githubusercontent.com/arajkumar/09d753153cb065622fa295f1caf2999c/raw/b727232932fd91083910101ea15ed705df8d3e01/0.3.1-meta.yaml | |
alias: dependency-analytics | |
- id: che-incubator/typescript/latest | |
memoryLimit: 256Mi | |
type: chePlugin | |
- mountSources: true | |
endpoints: | |
- name: nodejs | |
port: 3000 | |
memoryLimit: 256Mi | |
type: dockerimage | |
image: 'quay.io/eclipse/che-nodejs10-ubi:7.24.0' | |
alias: nodejs | |
apiVersion: 1.0.0 | |
commands: | |
- name: stop the web app | |
actions: | |
- type: exec | |
command: >- | |
node_server_pids=$(pgrep -fx '.*nodemon (--inspect )?app.js' | tr | |
"\\n" " ") && echo "Stopping node server with PIDs: | |
${node_server_pids}" && kill -15 ${node_server_pids} &>/dev/null && | |
echo 'Done.' | |
component: nodejs | |
- name: download dependencies | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/nodejs-web-app/app' | |
type: exec | |
command: npm install | |
component: nodejs | |
- name: run the web app | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/nodejs-web-app/app' | |
type: exec | |
command: nodemon app.js | |
component: nodejs | |
- name: Attach remote debugger | |
actions: | |
- referenceContent: | | |
{ | |
"version": "0.3.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach to Remote", | |
"address": "localhost", | |
"port": 9229, | |
"localRoot": "${workspaceFolder}", | |
"remoteRoot": "${workspaceFolder}" | |
} | |
] | |
} | |
type: vscode-launch | |
- name: run the web app (debugging enabled) | |
actions: | |
- workdir: '${CHE_PROJECTS_ROOT}/nodejs-web-app/app' | |
type: exec | |
command: nodemon --inspect app.js | |
component: nodejs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment