From 29fa51cee2ca736e9f2d62ccaea01753e3bbf327 Mon Sep 17 00:00:00 2001 From: Jamal Carvalho Date: Tue, 25 May 2021 18:48:52 -0400 Subject: all.bash,devtools: add support for running npx commands We will need to run npx commands with docker when running tests in CI. This change creates an npx command in all.bash and modifies the docker_nodejs script to share networking with the host so it can connect to a local instance of the frontend. Change-Id: Id8f32a7ff5bf017cb55c531b1e37a3f8aab0e73a Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/322635 Trust: Jamal Carvalho Reviewed-by: Julie Qiu --- devtools/docker_nodejs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devtools/docker_nodejs.sh') diff --git a/devtools/docker_nodejs.sh b/devtools/docker_nodejs.sh index c42be3e7..95f7a010 100755 --- a/devtools/docker_nodejs.sh +++ b/devtools/docker_nodejs.sh @@ -8,4 +8,4 @@ set -e # Script for running a nodejs docker image. -docker run --rm -v `pwd`:/pkgsite -w /pkgsite node:15.14.0 $@ +docker run --net=host --rm -v `pwd`:/pkgsite -w /pkgsite node:15.14.0 $@ -- cgit v1.3