Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Brad Fitzpatrick f2f2feb438 cmd/gitmirror: add the tini init wrapper to the Dockerfile
Updates golang/go#23705

Change-Id: I1fa42b2767d1a9780672458fd06d64ed998b9e04
Reviewed-on: https://go-review.googlesource.com/93755
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2018-02-14 15:23:07 +00:00
Jess Frazelle 95533a5ac7 cmd/gitmirror: cleanup and optimize dockerfile
Before:
REPOSITORY                            SIZE
gcr.io/go-dashboard-dev/gitmirror     1.32GB

After:
REPOSITORY                            SIZE
gcr.io/go-dashboard-dev/gitmirror     208MB

Updates golang/go#18817

Change-Id: I633fbbde2c5bba52535a8cfefdcb1f0532c45c06
Reviewed-on: https://go-review.googlesource.com/40571
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Kevin Burke <kev@inburke.com>
2017-04-17 18:53:13 +00:00
Kevin Burke f2cd214fae all: fix vet errors
Replace oauth2.NoContext (deprecated) with context.Background(),
which has been available for two consecutive releases.

Add more cloud.google.com/go packages to the cmd/coordinator
Dockerfile to fix an error building cmd/coordinator. A dependency is
not present in master of cloud.google.com/go, but was present in the
older revision, and was not getting checked out correctly during the
"go get" step. In addition, we were failing to fetch dependencies for
some packages that coordinator depends on. I added instructions for
hopefully doing this more systematically in the future.

Fix the gitmirror Dockerfile which has the same problem.

Change-Id: Id6c2220482350a686b87742ec7915c457a689e52
Reviewed-on: https://go-review.googlesource.com/40852
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-15 23:42:12 +00:00
Brad Fitzpatrick 7441680b50 cmd/gitmirror: update Dockerfile to go1.8 final
Change-Id: I716df9fd406bf3c15efc768d110d68cc4e10611c
Reviewed-on: https://go-review.googlesource.com/37295
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-21 02:08:55 +00:00
Brad Fitzpatrick 34876513c6 cmd/gitmirror: cleanups & more Kubernetes work
It's now running, but not hooked up the coordinator yet.

Updates golang/go#18817

Change-Id: I5870af1e0bfe5213886f7faeb138127986a7234c
Reviewed-on: https://go-review.googlesource.com/36801
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-02-11 20:10:45 +00:00
Brad Fitzpatrick d559b30a3a cmd/gitmirror: start of splitting off the git mirror code into separate service
Currently the Gerrit polling & git mirroring & serving & syncing
functionality is in the "watcher" process, which is in the same binary
as the cmd/coordinator (farmer.golang.org), but runs as a separate
process on that machine, and actually run in a separate Docker
container so it has a cache volume and the /usr/bin/git binary, etc. A
flag determines where func main delegates to: the build coordinator,
or the git mirror.

Start cleaning this up, in prep to run on Kubernetes as a separate service.

This copies the env/watcher-world/Dockerfile into a new gitmirror
Dockerfile, and copies the existing cmd/coordinator/watcher_process.go
into a new cmd/gitmirror/gitmirror.go process.

None of this is deployed or working yet. Once it's running and happy,
I'll then switch the coordinator to find & use it on GKE, and then
delete the old code.

Updates golang/go#18817

Change-Id: Ibaa87f244f08ce61662e689b815740c72c997536
Reviewed-on: https://go-review.googlesource.com/35911
Reviewed-by: Jaana Burcu Dogan <jbd@google.com>
2017-01-30 18:03:31 +00:00