File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
deployment/clouddeploy/gke-workers/environments/oss-vdb-test Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 16
16
value : osv-test-debian-osv
17
17
- name : INPUT_GCS_BUCKET
18
18
value : osv-test-cve-osv-conversion
19
+ - name : NUM_WORKERS
20
+ value : 256
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ OSV_OUTPUT_PATH="debian-cve-osv"
12
12
INPUT_BUCKET=" ${INPUT_GCS_BUCKET:= osv-test-cve-osv-conversion} "
13
13
OUTPUT_BUCKET=" ${OUTPUT_GCS_BUCKET:= osv-test-debian-osv} "
14
14
CVE_OUTPUT=" cve_jsons/"
15
-
15
+ WORKERS= " ${NUM_WORKERS := 256} "
16
16
17
17
echo " Setup initial directories ${OSV_OUTPUT_PATH} "
18
18
rm -rf $OSV_OUTPUT_PATH && mkdir -p $OSV_OUTPUT_PATH
@@ -22,5 +22,5 @@ echo "Begin syncing NVD data from GCS bucket ${INPUT_BUCKET}"
22
22
gcloud --no-user-output-enabled storage -q cp " gs://${INPUT_BUCKET} /nvd/*-????.json" " ${CVE_OUTPUT} "
23
23
echo " Successfully synced from GCS bucket"
24
24
25
- ./debian-osv -output_bucket " $OUTPUT_BUCKET " -output_path " $OSV_OUTPUT_PATH " -num_workers " 256 "
25
+ ./debian-osv -output_bucket " $OUTPUT_BUCKET " -output_path " $OSV_OUTPUT_PATH " -num_workers " $WORKERS "
26
26
echo " Successfully converted and uploaded to cloud"
You can’t perform that action at this time.
0 commit comments