aboutsummaryrefslogtreecommitdiff
path: root/devtools/docker
AgeCommit message (Collapse)Author
2026-03-12all: upgrade Node.js to version 20Hana Kim
Change-Id: Id9f71f9e14b72675c74cdd60be1fb1ba0d843791 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/752186 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Alexis Eduardo Avendaño Mijangos <punker308989@gmail.com> Reviewed-by: Ethan Lee <ethanalee@google.com>
2026-03-09all: update PostgreSQL version to 14Ethan Lee
Update Docker configurations and documentation to use PostgreSQL 14, aligning local development and testing environments with production. There has been a change in how PostgreSQL 14 tokenizes paths. This has caused an alteration in how multi word searches are resolved. Update test case to reflect this. See golang/go#78036 for more context. To test: `tests/search/run.sh` Fixes golang/go#77903 Change-Id: I28eaa722914b2163fe962a1b4a1b8681d60b18b3 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/750740 Auto-Submit: Ethan Lee <ethanalee@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> kokoro-CI: kokoro <noreply+kokoro@google.com>
2025-12-30deploy: bump Go version to 1.25.5 and update depsEthan Lee
Change-Id: I811776287454ba74b0ec8c1796c20907bf562150 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/733341 Reviewed-by: Nicholas Husin <husin@google.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Nicholas Husin <nsh@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ethan Lee <ethanalee@google.com>
2025-03-11go.mod, misc: update to go 1.24Jonathan Amsterdam
Change-Id: Iba3d15376214048113314150944d3b0df187a8cf Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/656475 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
2024-11-26tests/screentest: update goldens to latest chromedp versionJonathan Amsterdam
Use a more recent version of chromedp and screentest. The newer screentest takes arguments differently, so update its invocations. The newer chromedp displays things slightly differently, so update the goldens. Also use the suffix "want" instead of "a", as the new screentest requires. Comment out buggy or flaky tests. These will be handled in followup CLs. Also, improve and enhance run.sh, notably adding the -run flag to run a subset of the tests. Change-Id: Ia46bf02f8cae15a763c80c6d6744f4ac9c005b9b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/631780 kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-08-24Revert "static/frontend: made cancel button in search field keyboard accessible"Jonathan Amsterdam
This reverts commit a224e846c93566e132672c606d14b07ef659553c. Reason for revert: breaks the UI (#68538) Fixes #68538. Change-Id: I23a6acaf741e7cb863c304363ee9b7a4fdf0bbe2 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/608036 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2024-08-20various: upgrade to go 1.23 containersJonathan Amsterdam
Upgrade to use go 1.23 images in various files that specify docker containers to run. Change-Id: I6331a07c4d0f00dc7513a5286d315dd0f64cd362 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/606778 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> kokoro-CI: kokoro <noreply+kokoro@google.com>
2024-01-17deploy,devtools: update go versionHana (Hyang-Ah) Kim
use go1.22rc1 Change-Id: I57dfddb84b551eca9b08bd988411dcd161745611 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/555196 kokoro-CI: kokoro <noreply+kokoro@google.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-01-03devtools/cmd/wait_available: add timeout flagMichael Matloob
And properly set the timeout flag in devtools/docker/compose.yaml and tests/screentest/run.sh instead of dropping it. Change-Id: I6aeee276b5fe1d01bef2b809b017a570c4f73368 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/553535 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> Run-TryBot: Michael Matloob <matloob@golang.org> kokoro-CI: kokoro <noreply+kokoro@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dan Peterson <danp@danp.net>
2023-12-24third_party/wait-for-it: replace with a simple go programMichael Matloob
The program doesn't have all the features of wait-for-it, but it implements the core functionality we need. For golang/go#61399 Change-Id: Ia5498523e44b74dcd5af1c984521f1a46208d2c5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/552295 kokoro-CI: kokoro <noreply+kokoro@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2023-07-18deploy: use go1.21rc3Jamal Carvalho
Change-Id: I36ecd3b393027717fb971284756d3636dcd9c916 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/509975 kokoro-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Jamal Carvalho <jamal@golang.org>
2023-05-19Fix content.yaml syntaxAlex Hays
Current content.yaml format errors with docker-compose v2.17+. Running snapshot tests currently errors with: unmarshal errors: line 37: mapping key “<<” already defined at line 36 line 52: mapping key “<<” already defined at line 51 line 83: mapping key “<<” already defined at line 82 This CR fixes that error. Context: https://github.com/docker/compose/issues/10407#issuecomment-1484787932 Change-Id: I15d9e1d7bb799819a783904cf9dc0bb5a26efcae Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/496189 Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2023-05-10x/pkgsite: expose Postgres port to loopbackSteven Hartland
Expose the Postgres port to loopback so that it works under WSL, enabling the tests run by all.bash to complete successfully based on the setup instructions in doc/postgres.md. Fixes golang/go#60009 Change-Id: I091d6db6319ac504c77279ada67c9a6e5a5bef84 GitHub-Last-Rev: 2dcf9d22deaa13cb6f2e567c6e2e2d699c1b8be0 GitHub-Pull-Request: golang/pkgsite#65 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/493076 Reviewed-by: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-02-21deploy,devtools: use golang:1.20 imageHana (Hyang-Ah) Kim
This will make pkgsite pick up the latest 1.20.x. And - reenable staticcheck. - mark the working directory as safe when running for ci. (this workaround is needed after the security patch https://release.debian.org/proposed-updates/bullseye_diffs/git_2.30.2-1+deb11u1.debdiff) Updates golang/go#53532 Change-Id: I31c5fc838821d8bd6ade81dc439eb46fabb75fe1 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/468917 Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
2023-02-01deploy,devtools: upgrade to go1.20rc3Jamal Carvalho
- Disabled staticcheck while go1.20 is unsupported. - Fixed out of bounds error in doc html parsing. - Fixed test issue related to rand package changes. Change-Id: Ib7b30ed9c40505a5a51d986426f0e41e53a298b1 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/464296 TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Jamal Carvalho <jamal@golang.org>
2022-09-22tests: add screentests for vuln pagesJamal Carvalho
Using a vulndb snapshot as testdata, added screentests that run only in CI for vuln pages. Because regular updates are made to the vulndb, these tests are not deterministic for non CI runs. Change-Id: I5aed1b350a13065cd7e45e100de1a9ba5123c2a5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/431175 TryBot-Result: kokoro <noreply+kokoro@google.com> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2022-08-04pkgsite: update to go1.19Jamal Carvalho
Change-Id: Icf9ea86e7cffbd79295cd5713cb28d3d3af820f2 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/420957 TryBot-Result: kokoro <noreply+kokoro@google.com> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
2022-06-17all: upgrade to go 1.19beta1Jonathan Amsterdam
This is a prerequisite for using the new go/doc/comment package. Change-Id: Id92e4db359a0d57e945264078b5e58d86f6aa64b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/412674 Reviewed-by: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jonathan Amsterdam <jba@google.com>
2022-03-16deploy,devtools: use 1.18.0 in containersJonathan Amsterdam
Change-Id: I07b23527bdb996af4fdda03319beb8387bfe83c9 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/392956 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-03-07deploy,devtools: upgrade to 1.18 rc1Jonathan Amsterdam
Change-Id: Id9e61605915dd0c38c0004c3b28dfe0201395a8c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/388955 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-02-04deploy,devtools: update ci to use Go 1.18beta2Jonathan Amsterdam
Change-Id: I5f4f857b576fd68b0d5f58f7926bb598dbfe3cdb Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/382979 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2022-01-31pkgsite: remove the e2e testsJamal Carvalho
The e2e tests have been replaced with the screentest check. Removed the tests, related jest config, and npm dependencies. Change-Id: Ib7652170a00ce2750545e7843b11d27b7eb0e3fb Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/382035 Trust: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2022-01-31devtools,tests: use screentest for visual diff testingJamal Carvalho
Screentest is a visual diff testing tool installed from x/website. This change adds a screentest check to pkgsite as the first step in replacing the nodejs based e2e tests. Postgres data is persisted across test runs to speed up reruns of the test on dev machine. Change-Id: If0aa12b109ff67033e230c84c549fb10a2beeb46 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/381815 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
2021-12-20devtools/docker/Dockerfile.frontend: removeJonathan Amsterdam
This dockerfile isn't used and could cause confusion. Change-Id: I12c5cb37b9c64439b6a4fedaf882d09caceb5c7d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/373194 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-09-16devtools: remove external ports from compose.yamlJonathan Amsterdam
Remove the "ports" config from compose.yaml, so that no service binds a port on the host machine. This prevents e2e and other tests from failing because there is already something listening on a particular port on the user's machine. The services can still communicate with each other on the network that docker-compose creates. Also, add docker_postgres.sh to start postgres with docker, to replace the one use case for exposed ports, and modify recreate_db.sh to work with that script. Change-Id: Ide3908fedd01886dc145a663f24151390c8d4d0e Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/350270 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
2021-09-01tests/search: use data from frontend JSON pageJulie Qiu
tests/search/run.sh now runs tests by comparing data fetched from the frontend instead of directly from the database. For golang/go#44142 Change-Id: Ic66cd2ff4867170d9f89b5f7a9f4bbc6ad64370b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/346529 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-09-01tests/api: fix run.sh and docker frontend hostJulie Qiu
Bugs in the tests/api/run.sh script are fixed: * The -frontend flag now refers to the correct host * GO_DISCOVERY_DYNAMIC_CONFIG is set to the empty string, since no experiments are relevant Change-Id: If03bcb80358caa54ab767975a4d6af9c6978f434 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/346537 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-08-26devtools/docker: remove GO_DISCOVERY_E2E_ENVIRONMENTJulie Qiu
Change-Id: If53213726bb5b68ab704a535b59fe4fbee8f3a69 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/345349 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-08-23devtools/docker: update go go 1.16Jonathan Amsterdam
Change-Id: I8342fa6f9dc840914614691f4545508f2358b421 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/344391 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-08-09tests/e2e: group e2e snapshots by environmentJamal Carvalho
Snapshot tests are grouped by environment to support divergent snapshots between CI and staging. Change-Id: Ia840a1d77e37796b19687daa3acaba17af3e0421 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/340889 Reviewed-by: Julie Qiu <julie@golang.org> Trust: Jamal Carvalho <jamal@golang.org>
2021-08-09devtools/docker: increase headless chrome timeoutJamal Carvalho
To keep the browser from closing pages during e2e test runs. Change-Id: Iaf0db3a57d06670384a1940edd6425f9f027a5d7 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/340892 Reviewed-by: Julie Qiu <julie@golang.org> Trust: Jamal Carvalho <jamal@golang.org>
2021-08-05devtools,package.json: upgrade and pin puppeteer versionJamal Carvalho
The 1.46-chrome-stable image of browserless/chrome was updated and a tag that contains the same combination of browserless, puppeteer, and chromium does not exist. This change upgrades puppeteer and uses a browserless/chrome image with pinned versions of all the internal software. Change-Id: I2d7c037395c8f1a3c0a51ccb16abf0eadcc599b3 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/340189 Trust: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
2021-08-05devtools,tests/api: add set up with dockerJulie Qiu
tests/api/run.sh is added, which runs the symbol history comparison script in docker. For golang/go#37102 Change-Id: I11d7f3a61277d6756308f854a78504c3b63ac4fd Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/339395 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-08-03devtools/docker: add run.shJulie Qiu
run.sh is added, which is a shorthand for running `docker-compose -f devtools/docker/compose.yaml`. The dockercompose function from devtools/docker.sh is also now used where applicable. Change-Id: I424157c25b4ad7f96d23ba37c3dc2cb4caa34c8c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/339392 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org>
2021-07-21devtools/docker: fix boolean environment variableJulie Qiu
Fix thie error when running docker: GO_DISCOVERY_TESTDB must be a string, number or null Change-Id: Iaff9c208373c4fe09c3ba7c45fb23945bb70b4b0 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335949 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-07-20tests/search: add setup for testing searchJulie Qiu
A method is added for testing symbol search. See tests/README.md for set up details and tests/search/scripts/symbolsearch.txt for an example. These tests run in the searchtests docker container and can be run using tests/search/run.sh test/search/run.sh do not pass yet, since the symbol search query needs to be fixed, but in the future they will run in CI. For golang/go#44142 Change-Id: I0a2d6818e9874385a0bd79d668cce63495a363c3 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/333934 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-07-20devtools: add go docker containerJulie Qiu
A docker container is added for running Go code. Change-Id: I1349d28a9fc54f770dda01dcaa6c314674b1e5aa Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335249 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-07-19tests/e2e: use discovery_e2e_test as GO_DISCOVERY_DATABASE_NAMEJulie Qiu
export GO_DISCOVERY_DATABASE_NAME=discovery_e2e_test is set to ensure that tests are running against a separate database for development. Both the frontend and seeddb now attempt to create the db before running migrations, in case it does not already exist. Change-Id: I3395df8d5ef37ce0cc20fad4ecbbcd05379baaef Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335391 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-07-19devtools,tests/e2e: move config.yamlJulie Qiu
The config.yaml used for e2e tests is moved from devtools/docker/config.yaml to tests/e2e/config.yaml. Change-Id: Iae005ebd265e1c48a7114e35121fde33b6caf063 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335354 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-07-19devtools/docker: add persistent gomodcacheJulie Qiu
Everytime that docker-compose runs, it will resolve and re-download the dependency tree from scratch. A gomodcache volume is added to persist these dependencies across runs. Change-Id: I154a0efb11b8172efa12aaeb800b6a5ac72f85ec Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335352 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-07-19devtools/docker: add x-go-variablesJulie Qiu
Shared variables for Go servers are moved to x-go-variables. Also delete the unused PORT variable on the seeddb container. Change-Id: Ibe28e07010ca4607454b9098600e9d0dd28fcac6 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335353 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-07-19devtools/docker: use extension field for database variablesJulie Qiu
Shared GO_DISCOVERY_DATABASE_* variables are now stored set using x-database-variables. Change-Id: I45e344a860961996ff629f0941daef6ddc8cde91 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335251 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-07-19devtools/docker: upgrade to 3.4 compose file formatJulie Qiu
Upgrading to version 3.4 allows us to use extension fields to factor out environment variables. This is done in the next CL. Change-Id: Ia5d29d9e2959dbc9fe4020edad26b164aa64a4dc Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335250 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-07-19devtools,tests: delete migrate containerJulie Qiu
devtools/cmd/db can now be used to run migrate in the seeddb and frontend containers, so a separate migrate service is no longer necessary. Change-Id: I938f259ff1e6efe53ee0f93e5740911dc5e14fb5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/335139 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-07-14devtools/docker: remove chrome dependency from nodejs serviceJamal Carvalho
Most usage of the nodejs service does not require chrome to be active. Removing the unecessary dependency. Change-Id: I55ed67207eb5b9f2638ccbab01b8d03f48779897 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/334256 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
2021-07-14devtools,e2e: update snapshots for new-unit-layout experimentJamal Carvalho
The e2e tests are updated to use a config file for experiments and the snapshots are updated accordingly. Change-Id: I9adcdd1be6b0f8b6c7815f36879817ca3c03e691 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/333292 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> Reviewed-by: Julie Qiu <julie@golang.org>
2021-07-14devtools/docker: rename docker-compose.yaml to compose.yamlJulie Qiu
The "docker-" is removed from docker-compose.yaml to remove unnecessary repetition. Change-Id: I9a4bfcb7dcb52281f49d2c67361454d900ce38c5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/334449 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-07-12devtools: add GO_DISCOVERY_SEED_DB_FILE to customize seed fileJulie Qiu
The GO_DISCOVERY_SEED_DB_FILE variable is now used to determine which seeddb file should be read by the seedb container in docker-compose. This allows us to use different files for development and the e2e tests. The seedfile for e2e tests is renamed to e2e_test_modules.txt, to make it clear what the file was used for. In future CLs we will also have additional seed files. Change-Id: I5c3c64386f419b582b043d933482bcc84f186495 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/333153 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-07-12devtools/docker: remove quotes around db nameJulie Qiu
The quotes around "discovery-db" were unnecessary, and the database name was sometimes being created as `"discovery-db"`. Change-Id: I826e91c6b787e5b0cee465adb6f0e4acd105a85d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/333372 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-07-12devtools/cmd/seeddb: remove extra seeddb directoryJulie Qiu
devtools/cmd/seeddb/seedb had an extra level of nesting that wasn't necessary. Change-Id: I997d97fba0339ca08645fa1a29ba7c3a40caf30c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/333151 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>