Commit Graph

144 Commits

Author SHA1 Message Date
CrazyMax
0582a1aac2 hack: shfmt bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:30 +01:00
CrazyMax
d31e77ff3c hack: doctoc bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:29 +01:00
CrazyMax
416883ff27 hack: authors Dockerfile and bake target
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:29 +01:00
CrazyMax
1b721f4b3b hack: bake definition with vendor targets
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-23 11:58:29 +01:00
CrazyMax
057fc35295 update golangci-lint to v1.51.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-21 12:09:54 +01:00
CrazyMax
b8a97ab785 update to go 1.20
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-21 12:09:54 +01:00
Wei Zhang
6a1e129a3c ci: add ci to check README toc
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2023-01-07 16:02:08 +08:00
CrazyMax
e1b3b6c4ab hack: infer protoc-gen-go version from go.mod
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-11-17 13:50:49 +01:00
CrazyMax
764327de96 hack: use tools build constraint for generated-files deps
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-11-17 12:59:13 +01:00
CrazyMax
4a15e742d8 update golangci-lint to 1.48.0 (go 1.19 support) and fix linting issues
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-08-19 10:26:52 +02:00
CrazyMax
1353f411d9 update to go 1.19
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-08-19 10:26:24 +02:00
Pranav Pandit
4ebb56e0fe Remove deprecated function call to fix lint error
Signed-off-by: Pranav Pandit <pranavp@microsoft.com>
2022-08-11 16:44:56 -07:00
CrazyMax
8679e23647 lint: fix issues with go 1.18
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-25 09:06:47 +01:00
CrazyMax
6676f306e0 hack/dockerfiles: upgrade golangci-lint version to v1.45.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-22 18:46:25 +01:00
CrazyMax
ebdcd31aba update to go 1.18
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-22 18:46:25 +01:00
CrazyMax
46422e3aba ci: opt-in buildinfo attrs with output opt
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-03-01 14:23:48 +01:00
Tonis Tiigi
01e935cff5 hack: update linter to v1.43
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2022-01-19 11:48:57 -08:00
Tonis Tiigi
ac61da5890 update go to 1.17
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-08-16 19:56:45 -07:00
Sebastiaan van Stijn
bd4b02d5a8 generated files: use "go install" to install binaries
Now that this repository moved to go1.16, we can use 'go install' to install
these binaries.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-13 16:56:57 +02:00
Koichi Shiraishi
9cc9d6c13b hack/dockerfiles: upgrade golangci-lint version to v1.41.1
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:12 +09:00
CrazyMax
da34b88a9a Fix protoc link
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-28 19:13:16 +02:00
Tonis Tiigi
a5b6c20c38 Update Dockerfile references to use 1.3
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-19 13:54:15 -07:00
Tõnis Tiigi
03af083def Merge pull request #2144 from thaJeztah/bump_golang
update to go 1.16
2021-06-08 10:30:33 -07:00
Tonis Tiigi
33af267b9a hack: update proto generators for arm64
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-07 11:58:10 -07:00
Sebastiaan van Stijn
22dd74ae93 update to go 1.16
This updates all occurrences of Go 1.13 to Go 1.16; also updated
the code that's used to redact credentials in URLs to use the Go
implementation.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-02 00:31:57 +02:00
Sebastiaan van Stijn
acbe79f936 generated-files: update protoc to v3.11.4 to match google/protobuf
see https://github.com/golang/protobuf/blob/v1.3.5/.travis.yml#L15

Note that gogo/protobuf v1.3.2 updated protoc to v3.14.0; https://github.com/gogo/protobuf/releases/tag/v1.3.2
however, regenerating protobufs with this switched an import to use
google.golang.org/protobuf/types/known/timestamppb instead of
github.com/golang/protobuf/ptypes/timestamp, so using the older
version for now

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-01 23:23:58 +02:00
Sebastiaan van Stijn
056afec140 generated files: update google/protobuf v1.3.5, and fix install for go modules
This patch updates the script and Dockerfile to prevent issues when using go
modules.

The first change is to use a plain `git clone` instead of `go get -d` to download
the source. While (like "pre go-modules") `go get -d` won't *build* the binaries
when go modules are used, it *will* use go modules to download the package
(and dependencies); as a result:

- no git repository will be cloned in gopath
- go modules will be downloaded for "master" (not the version that we specify
  to build)

Note: Once we update to Go 1.16, this script could be updated to use `go install <repo>@version`

The second change is an update to the `update-generated-files` script to detect
the correct version of google/protobuf to use from the `go.mod`'s  `replace` rule,
to make sure we generate (and verify) using the correct version.

The Dockerfile was also updated to update the default versions specified in the
PROTOBUF_VERSION and GOGO_VERSION build-args (although not strictly necessary).

Regenerating the files with this version resulted in a minor formatting change.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-01 23:23:53 +02:00
Tonis Tiigi
cc12bc820e lint: update golangci
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-05-03 18:32:34 -07:00
Tonis Tiigi
245e71fd8b update Dockerfiles to 1.2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-12-08 15:00:30 -08:00
CrazyMax
072078a403 Add lint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-22 18:11:05 +01:00
Tonis Tiigi
8c55320f45 hack: add shfmt
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-24 21:17:54 -07:00
Tonis Tiigi
5da4a40ae8 lint: enable more linters
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-19 09:28:36 -07:00
Tonis Tiigi
04233f90b3 replace gometalinter with golangci linter
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-18 08:13:48 -07:00
Tonis Tiigi
02fff48cbd errdefs: add support for typed errors
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-21 22:57:23 -07:00
Pratik Raj
2910de68b1 optimization debian package manager tweaks
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages .

By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.

This results in smaller downloads and installation of packages .

Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends) .

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2020-03-11 15:27:54 +05:30
Tonis Tiigi
a60ecfa4ae vendor: restore dependency versions
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-02-24 17:31:01 -08:00
Akihiro Suda
5938170b84 hack: rename Dockerfiles
Fix https://github.com/moby/buildkit/issues/1208

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-18 17:21:48 +09:00
Tonis Tiigi
c4f03056c9 hack: remove support for containerd 1.2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-10-16 10:33:04 -07:00
Akihiro Suda
e2ea141383 hack: remove legacy Dockerfile
Fix #1022

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-13 00:10:27 +09:00
Derek McGowan
46e7bc82d7 Update test dockerfiles for containerd
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-10-01 16:52:59 -07:00
Tonis Tiigi
ce9dfec05f hack: update containerd daemon
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-09-20 14:59:54 -07:00
Tonis Tiigi
d313ab6a58 hack: update to dockerfile-1.1
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-09-05 17:14:18 -07:00
Tonis Tiigi
b407790852 update containerd daemon to 1.2.7 and old to 1.1.7
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-20 17:02:43 -07:00
Tonis Tiigi
2cea1107d6 travis: add ci caching
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-17 09:13:06 -07:00
Tonis Tiigi
69adb50902 hack: unbreak upgrade to buster
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-22 16:38:21 -07:00
Akihiro Suda
d750cb188a Merge pull request #1073 from tonistiigi/cni-net
add cni networking support
2019-07-19 10:47:27 +09:00
Tonis Tiigi
653c91e114 network: add non-lazy cni network init
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-12 11:00:02 -07:00
Tonis Tiigi
e7759a861b client: add cni network tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-10 18:00:06 -07:00
Tonis Tiigi
bc7a6f2556 add cni networking support
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-10 14:42:30 -07:00
Tibor Vass
969be2068e hack: fix runtime panic due to osuser build tag not set
Looks like due to a bug in Dockerfile frontend, only the BUILDKITD_TAGS
build arg was taken into account, not the env var.

Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-10 04:27:37 +00:00