aboutsummaryrefslogtreecommitdiff
path: root/devtools/docker
AgeCommit message (Collapse)Author
2021-07-12devtools/docker: delete GOMODCACHE volumeJulie Qiu
This optimization isn't necessary and is causing an error on cloudtops, so delete it for now. Change-Id: I36e38ceb24cbefb6d249e2232a26bedb77ae001a Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/334009 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-21devtools/docker: run chrome with nodejs containerJulie Qiu
The nodejs service now depends on headless chrome to be up an running, so that it can be used to run e2e tests independent of the frontend service. This is used to run npx in e2e tests using a different instance of the one running in docker, such as when testing against a local instance or when running the deployment script. Change-Id: I68d583859a7abe8cf7b59d5a79eebe3d994c54d5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329915 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-21devtools/docker: sort environment variablesJulie Qiu
The environment sections are sorted alphabetically. Change-Id: I9a9342d2c1ef23edfc37b01c617561dc6ed57b06 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329914 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-21devtools/docker: fix GO_DISCOVERY_* reference and add commentsJulie Qiu
A hardcoded value that should be a reference to GO_DISCOVERY_* in the migrate service is fixed. Comments are added to make it clearer what the GO_DISCOVERY_* variables are intended for. Change-Id: Ia30a0a9a3f5b9cda777a086a1f18fca9e9dda993 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329911 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
2021-06-21devtools/docker: set default GOPATHJulie Qiu
If $GOPATH is not set, default to $HOME/go in the docker-compose setup. Change-Id: Ic9919a0fc2807e7329e6f571da5985a32780cb7d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329829 Trust: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-18devtools/docker: allow custom GO_DISCOVERY_* values in docker-composeJulie Qiu
All GO_DISCOVERY_* can now be customized using environment variables. Change-Id: I68f7b4e09c4caec7690fca64b8a38237b983bf0d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329499 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-18all: remove GO_DISCOVERY_DATABASE_TEST_*Julie Qiu
There doesn't seem to be any reason that the config for testing needs to be different from the normal GO_DISCOVERY_DATABASE_* environment variables. To simplify our setup, remove the GO_DISCOVERY_DATABASE_TEST_* variables and replaced them with the GO_DISCOVERY_DATABASE_* variables. Change-Id: Iedb05579693d70282f6aec531c1f9a443f8e80f0 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329494 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-18devtools/{ci,docker}: allow custom database nameJulie Qiu
Instead of hardcoding the DB name, set it using GO_DISCOVERY_DATABASE_NAME. Change-Id: Icce23faadebeb62759391c468cbfdd78b9a7453d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329492 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-18devtools/docker: allow custom db portJulie Qiu
Instead of hardcoding the DB port, set it using GO_DISCOVERY_DATABASE_PORT. Change-Id: Ib2f4dcf0fdcde1ce4401281ae2094627103328af Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329491 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-18devtools/docker: persist GOMODCACHEJulie Qiu
Rather than redownloading dependencies for each service, mount the dependency cache so that it persists across runs. Change-Id: I74b58d994ab0980bef0aefdd79761584f05ad38c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329490 Trust: Julie Qiu <julie@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-18devtools: split frontend and seeddb in docker-composeJulie Qiu
The frontend and seeddb commands are split into separate services, so that we can run them separately. Change-Id: Ic3b679aede268b84de8869a6ec7790357befc528 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329409 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-18devtools: run nodejs.sh using docker-composeJulie Qiu
The docker command in devtools/nodejs.sh is moved to docker-compose. Change-Id: I0ee98fcbe6007729cb4e4dd57381d2d674d58347 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328890 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-18devtools: add all.bash to docker-composeJulie Qiu
all.bash can now be run using docker-compose. Change-Id: I2b365fd7911bb61f52f1fc7c9c9d594fb4c6c731 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328749 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-17devtools: run all e2e tests in CIJulie Qiu
All of the tests in e2e/ are now run in CI. Change-Id: I440e22b89a21ba28f51d76f7c35fecdd656738f7 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328429 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-16devtools/docker: fix docker-compose.yaml syntax highlightingJamal Carvalho
Removes newlines at the end of commands to fix syntax highlighting in vscode. Change-Id: I20aee33841811b5b2f63619e8a84877e4c2df5d4 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328670 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
2021-06-16devtools/{ci,docker}: remove redundant npm installJamal Carvalho
A single call to npm ci at the beginning of devtools/ci should be sufficient to ensure node modules have already been in stalled. Removing the additional install command in the docker-compose file will speed up test runs. Change-Id: Id149c22f6abd5060b2bda4084333840e67f11fe9 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328669 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
2021-06-16devtools/docker: run seeddbJulie Qiu
The seeddb script and all e2e testcases are now run in CI. Change-Id: Ie5858a8debf43b64925ed3e0baa3ff15944234fa Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328550 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-16devtools/docker: set LANG=C for postgresJulie Qiu
Change-Id: If0dca9186806e1159450700ab6f58c1de1e036d1 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/327933 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-06-15devtools/docker: use wait-for-it in migrateJulie Qiu
The migrate service in docker-compose.yaml now uses wait-for-it, so that migrations don't run until the service can connect to postgres. Change-Id: I0542f5ea336fade42fb5ad39dd3875d243fac000 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328254 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-06-15devtools: move e2e/docker/*Julie Qiu
The e2e docker setup is moved to devtools, since it will also be useful for developing locally. Moved and changed references for: - e2e/docker/Dockerfile.frontend -> devtools/docker/Dockerfile.frontend - e2e/docker/docker-compose.yaml -> devtools/docker/docker-compose.yaml - e2e/docker/run.sh -> devtools/run_e2e.sh Change-Id: Ibfcb84e68d07058ad1cccd67891c939c4e75aae3 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/328252 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>