Skip to content

Commit

Permalink
Fix quoting in docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Feb 27, 2024
1 parent 89f8976 commit 0e9c37f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PIDFILE=/tmp/http-cache-test-server.pid
ALL_PROXIES=(squid nginx apache trafficserver varnish caddy nuster)
DOCKER_PORTS=""
for PORT in {8001..8006}; do
DOCKER_PORTS+="-p ${PORT}:${PORT} "
DOCKER_PORTS+="-p 127.0.0.1:${PORT}:${PORT} "
done

function usage {
Expand All @@ -24,8 +24,10 @@ function run {
# start test server
npm run --silent server --port=8000 --pidfile=$PIDFILE &

echo $DOCKER_PORTS

# run proxies container
docker run --platform linux/amd64 --name=tmp_proxies "${DOCKER_PORTS}" -dt mnot/proxy-cache-tests host.docker.internal \
docker run --platform linux/amd64 --name=tmp_proxies ${DOCKER_PORTS} -dt mnot/proxy-cache-tests host.docker.internal \
> /dev/null

# run nuster container
Expand Down

0 comments on commit 0e9c37f

Please sign in to comment.