Skip to content

Commit

Permalink
scripts/dock.sh: do not expose unset environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Jul 15, 2019
1 parent 24c9a67 commit f95e33b
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/scripts/dock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ else
# Snabb Docker environment

docker run --rm --privileged -i -v $(dirname $PWD):/snabb $DOCKERFLAGS \
-e SNABB_PCI0=$SNABB_PCI0 \
-e SNABB_PCI1=$SNABB_PCI1 \
-e SNABB_PCI_INTEL0=$SNABB_PCI_INTEL0 \
-e SNABB_PCI_INTEL1=$SNABB_PCI_INTEL1 \
-e SNABB_PCI_INTEL1G0=$SNABB_PCI_INTEL1G0 \
-e SNABB_PCI_INTEL1G1=$SNABB_PCI_INTEL1G1 \
-e SNABB_PCI_SOLARFLARE0=$SNABB_PCI_SOLARFLARE0 \
-e SNABB_PCI_SOLARFLARE1=$SNABB_PCI_SOLARFLARE1 \
-e SNABB_TELNET0=$SNABB_TELNET0 \
-e SNABB_TELNET1=$SNABB_TELNET1 \
-e SNABB_PACKET_SIZES=$SNABB_PACKET_SIZES \
-e SNABB_PACKET_SRC=$SNABB_PACKET_SRC \
-e SNABB_PACKET_DST=$SNABB_PACKET_DST \
-e SNABB_IPERF_BENCH_CONF=$SNABB_IPERF_BENCH_CONF \
-e SNABB_DPDK_BENCH_CONF=$SNABB_DPDK_BENCH_CONF \
-e SNABB_PERF_SAMPLESIZE=$SNABB_PERF_SAMPLESIZE \
-e SNABB_IPSEC_SKIP_E2E_TEST=$SNABB_IPSEC_SKIP_E2E_TEST \
-e SNABB_PCI0 \
-e SNABB_PCI1 \
-e SNABB_PCI_INTEL0 \
-e SNABB_PCI_INTEL1 \
-e SNABB_PCI_INTEL1G0 \
-e SNABB_PCI_INTEL1G1 \
-e SNABB_PCI_SOLARFLARE0 \
-e SNABB_PCI_SOLARFLARE1 \
-e SNABB_TELNET0 \
-e SNABB_TELNET1 \
-e SNABB_PACKET_SIZES \
-e SNABB_PACKET_SRC \
-e SNABB_PACKET_DST \
-e SNABB_IPERF_BENCH_CONF \
-e SNABB_DPDK_BENCH_CONF \
-e SNABB_PERF_SAMPLESIZE \
-e SNABB_IPSEC_SKIP_E2E_TEST \
$SNABB_TEST_IMAGE \
bash -c "mount -t hugetlbfs none /hugetlbfs && (cd snabb/src; $*)"
fi

0 comments on commit f95e33b

Please sign in to comment.