diff --git a/hack/build-bytecode-images-multi.sh b/hack/build-bytecode-images-multi.sh index 75c790bd..3bc79572 100755 --- a/hack/build-bytecode-images-multi.sh +++ b/hack/build-bytecode-images-multi.sh @@ -21,17 +21,21 @@ PROGRAMS='{ "nf_nat_manip_pkt":"kprobe" }' +echo "$PROGRAMS" | jq empty || { echo "Invalid JSON in PROGRAMS"; exit 1; } + # MAPS is a list of : tuples MAPS='{ "direct_flows":"ringbuf", "aggregated_flows":"hash", -"additional_flow_metrics":"per_cpu_hash" +"additional_flow_metrics":"per_cpu_hash", "packets_record":"perf_event_array", "dns_flows":"hash", "global_counters":"per_cpu_array", "filter_map":"lpm_trie" }' +echo "$MAPS" | jq empty || { echo "Invalid JSON in MAPS"; exit 1; } + if [[ ${OCI_BIN} == "docker" ]]; then docker buildx create --name bytecode-builder --use docker buildx inspect --bootstrap