diff options
| author | Jamal Carvalho <jamal@golang.org> | 2021-05-25 18:48:52 -0400 |
|---|---|---|
| committer | Jamal Carvalho <jamal@golang.org> | 2021-05-25 23:25:54 +0000 |
| commit | 29fa51cee2ca736e9f2d62ccaea01753e3bbf327 (patch) | |
| tree | 02a301a6e8151ce8ee55a1fe2754f863d7daf55c /devtools | |
| parent | 6a8197aed49ea721495afe59cca80be795cbe95e (diff) | |
| download | go-x-pkgsite-29fa51cee2ca736e9f2d62ccaea01753e3bbf327.tar.xz | |
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 <jamal@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'devtools')
| -rwxr-xr-x | devtools/docker_nodejs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 $@ |
