Skip to content

Commit f1232c0

Browse files
committed
Created a kubernetes manifest file for the packager
1 parent ba3fd9d commit f1232c0

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ Examples:
9292
- Alternatively, you may - at your own risk - bypass this warning following the guidance here: https://support.apple.com/guide/mac-help/apple-cant-check-app-for-malicious-software-mchleab3a043/mac
9393
- Afterwards, you can simply run the binary from the command line and provide the required flags
9494

95+
# Kubernetes ☸
96+
97+
- You can now also run the app via `Kubernetes` (I don't really see a reason for doing so at this point though)
98+
- To do this, you have to change the `hostPath.path` in the `k8s-manifest.yml` to the **absolute** path where the JavaScript app resides that you want to be package
99+
- Afterwards, run `kubectl apply -f k8s-manifest.yml`
100+
- This will output the `zip` (that you can upload to `Veracode Static Analysis`) into the provided `hostPath.path`
101+
95102
# Bug Reports 🐞
96103

97104
If you find a bug, please file an Issue right here in GitHub, and I will try to resolve it in a timely manner.

k8s-manifest.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: veracode-js-packager
5+
spec:
6+
containers:
7+
- name: packager
8+
image: fw10/veracode-js-packager
9+
volumeMounts:
10+
- name: js-app-to-package
11+
mountPath: /app/js-app
12+
volumes:
13+
- name: js-app-to-package
14+
hostPath:
15+
# the absolute path where the JS app resides, e.g. "/home/someuser/git/veracode-javascript-packager/sample-projects/sample-node-project"
16+
path: <absolute_path_to_JS_app>

0 commit comments

Comments
 (0)