Commit Graph

84 Commits

Author SHA1 Message Date
Sam Dowell aece8508b1 ci: switch BUILD_IMAGE from alpine->debian
This is more consistent with the BASEIMAGE OS, and also ships with bash.
2024-06-21 11:24:27 -07:00
Tim Hockin b5b0558d58 Bump golangci-lint and fix lint 2024-06-09 00:57:47 -07:00
Davanum Srinivas 4b78431723
Bump base bookworm image to 1.0.2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-04-10 11:03:36 -04:00
Tim Hockin 1e1f846018 Bump to go 1.21 2024-01-16 16:59:41 -08:00
Tim Hockin 50de3aaeab Dump logs when e2e fails in CI 2023-09-19 13:20:09 -07:00
justinsb 8656ab6183 lint: Add linters to makefile / github CI
Not yet ready to make gating, but we can watch the progress.
2023-07-29 16:43:25 -07:00
Tim Hockin 22b2e8e35a Update to use bookworm base image
This include symlinks from /bin -> /usr/bin (and lib, and ...), which
broke the build script.  See comments in there for details.
2023-07-16 12:10:55 -07:00
Tim Hockin ee27153186 Make 'make test' work 2023-07-11 11:47:12 -07:00
Tim Hockin c4d5e9c531 Fix TAG usage for 'make release' 2023-06-26 11:27:31 -07:00
Tim Hockin 9ea8045b95 Update release notes and add 'make release' 2023-06-23 14:48:24 -07:00
Tim Hockin f037087d13
Make the container image smaller
For each package and binary we need, this pulls in all the files and
deps (shared libs, mostly).  The build is slower but the final image is
85 MB (versus 157 MB before).  e2e passes.  Hopefully less CVE surface.

This is based on scripts used in kubernetes and KinD.
2023-06-12 12:21:51 -07:00
Tim Hockin fd0ec2131b
Update to go 1.20 2023-05-05 13:27:36 -07:00
Tim Hockin 20ed7df894 Makefile: set GOOS,GOARCH defaults to kill warning 2023-04-29 10:39:07 -07:00
Sascha Grunert c410fd4a62
Bump debian-base build image to v1.4.3
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-02-22 12:35:40 +01:00
Tim Hockin c5dcd87551
e2e: move helper scripts to _test_tools/ 2023-02-15 12:22:29 -08:00
James Blair 104563fc47
Replace deprecated k8s registry references.
Problem: Previously all of Kubernetes' image hosting has been out of gcr.io. There were significant egress costs associated with this when images were pulled from entities outside gcp.  Refer to https://github.com/kubernetes/k8s.io/wiki/New-Registry-url-for-Kubernetes-(registry.k8s.io)

Solution: As highlighted at KubeCon NA 2022 k8s infra SIG update, the replacement for k8s.gcr.io which is registry.k8s.io is now ready for mainstream use and the old k8s.gcr.io has been formally deprecated and projects are requested to migrate off it. This commit migrates remaining references for kubernetes/git-sync to registry.k8s.io.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-02-14 16:26:30 +13:00
Tim Hockin f932a17dca
Bump base image to 1.4.2 2022-09-01 10:51:58 -07:00
Tim Hockin 98446f45f4 Set up buildx when building containers 2022-08-20 14:44:03 -07:00
Kubernetes Prow Robot b7082f6a19
Merge pull request #607 from thockin/make_debug_bin
Pass DBG=1 to `make` to build for debug
2022-08-15 02:36:13 -07:00
Tim Hockin 78ee13c54f Pass DBG=1 to `make` to build for debug 2022-08-13 18:01:43 -07:00
Tim Hockin 45b1c5485d Move tools into a tools/ subdir
This avoids vendoring all the deps in the root.
2022-08-13 16:43:22 -07:00
Tim Hockin 2fceb47ba3 Get rid of special manifest-tool hacks 2022-07-26 11:28:48 -07:00
Tim Hockin 0f1c792c5d Echo manifest-list name during build 2022-07-26 11:28:48 -07:00
Jingfang Liu d9e8b72885
Fix CVE-2022-2068 2022-07-06 11:53:59 -07:00
Tim Hockin 9d52a21123 Bring some Makefile cleanups from k/k 2022-07-03 16:50:51 -07:00
Tim Hockin 4b9431f9bc Don't run apt-get in e2e build if we can avoid 2022-07-03 11:35:09 -07:00
Tim Hockin 10abfd561b e2e: rebuild container less often 2022-07-03 11:35:09 -07:00
Tim Hockin 2461b8672b Bump build image to go 1.18 2022-07-02 11:05:51 -07:00
Kubernetes Prow Robot de719048fb
Merge pull request #537 from thockin/v4-dotfiles
v4: Fix inconsistency with build dotfile names
2022-07-02 03:05:23 -07:00
Tim Hockin d8842d7546 Fix inconsistency with build dotfile names 2022-06-24 08:24:19 -07:00
Your 10da5e83bf upgrade base image to address vulnerabilities 2022-06-21 16:19:13 +00:00
Tim Hockin 660024b973 Fix Makefile to run tools on host OS/ARCH 2022-06-06 14:24:41 -07:00
Tim Hockin e6a8014ba2 Only build test-tools when needed 2022-03-17 12:10:22 -07:00
Jingfang Liu b3a261c673 update the base image to fix vulnerabilities
It fixes the critical vulnerabilities: CVE-2021-45960
2022-03-11 08:27:17 -08:00
Tim Hockin 944bf01f81 Bump go to 1.17 2022-01-28 20:11:04 -08:00
Tim Hockin 5d9abd7bdf Bump base image version 2021-07-01 13:50:18 -07:00
Tim Hockin 394a460405 Makefile: plain output when building container 2021-05-27 09:57:58 -07:00
Tim Hockin a0379cbcd4 Bump go to 1.16 2021-04-23 09:00:59 -07:00
Tim Hockin 6ac6e4eefd Fix licenses for other arch'es 2021-04-16 08:22:18 -07:00
Tim Hockin bb6f4441fd Update to latest base image debian-base:buster-v1.6.0 (v4) 2021-04-15 08:44:15 -07:00
Tim Hockin ed5e78472e Copy all licenses into the container image 2021-03-29 16:54:35 -07:00
Tim Hockin ac6f5036a2 Don't require a TTY to build/test 2021-03-17 22:02:32 -07:00
Tim Hockin a082bf83cf Build container without cache 2021-03-11 19:25:01 -08:00
Stephen Augustus 35507943ce Makefile: Update base and build images
- base: debian-base:v2.0.0 --> debian-base:buster-v1.4.0
- build: golang:1.14-alpine --> golang:1.15-alpine

Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-02-12 12:15:59 -05:00
Tim Hockin a285a770e2 Use docker to run helper servers in e2e
Reliably cleaning up leftover things like `nc` processes is surprisingly
difficult in pure shell.  e2e passes on the master branch now.
2021-01-23 15:59:24 -08:00
Tim Hockin 7d89f343be Use new staging GCR 2020-09-07 17:28:57 -07:00
Tim Hockin 8f87fd8397 Fix multi-arch build support
Buildx seems to do what we need.
2020-09-04 23:01:45 -07:00
Tim Hockin 7b25906ff7 Build updates
Move to go 1.14

Explicitly apt-get update when building
2020-05-01 14:22:06 -07:00
Tim Hockin ef8f5cf703 Bump to debian-base 2.0.0 (buster)
This changed `git fetch` to require a `-f` the way we use it.

Also fix a flaky test case for SSH.
2020-01-31 09:20:54 -08:00
Tim Hockin 1a1dd1cbe0 e2e: Add test for SSH
This requires having a docker image for git-over-ssh.
2020-01-07 08:25:36 -08:00