Commit Graph

216 Commits

Author SHA1 Message Date
Tonis Tiigi
ac61da5890 update go to 1.17
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-08-16 19:56:45 -07:00
Cory Bennett
0b683eb1ff add missing ExtraHosts to gateway exec
Also adding tests for ExtraHosts and NetMode via gateway exec

Signed-off-by: Cory Bennett <cbennett@netflix.com>
2021-08-15 02:51:37 +00: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
Tonis Tiigi
cfb73e5007 hack: avoid updating generated proto version
This can be done as a separate change when needed.
Also should analyze if this would affect the gogo
incompatibility issues with newer proto.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 21:11:27 -07:00
Tonis Tiigi
d44a406213 add hack/shell helper for dev shell environment
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-08 14:30:40 -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
Akihiro Suda
67953d67c0 Merge pull request #2155 from tonistiigi/mirror-fix
test: fix mirror cache handling
2021-06-08 14:45:37 +09:00
Tonis Tiigi
19453d5acc test: fix mirror cache handling
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-07 18:59:32 -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
Sebastiaan van Stijn
6d75906c68 hack/install-buildx: allow overriding variables
With this patch:

    PREFIX=$(pwd)/foo/bar VERSION=v0.5.0 sh -c ./install-buildx
    Installing buildx v0.5.0 as /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx
    + mkdir -p /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin
    + rm -f /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx.download
    + curl -f -L -o /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx.download https://github.com/docker/buildx/releases/download/v0.5.0/buildx-v0.5.0.darwin-amd64
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   634  100   634    0     0   2313      0 --:--:-- --:--:-- --:--:--  2305
    100 58.5M  100 58.5M    0     0  5721k      0  0:00:10  0:00:10 --:--:-- 5947k
    + chmod +x /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx.download
    + mv /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx.download /Users/sebastiaan/Projects/test/test_buildx_install/foo/bar/bin/buildx

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-05-06 18:34:05 +02:00
Tonis Tiigi
cc12bc820e lint: update golangci
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-05-03 18:32:34 -07:00
Akihiro Suda
201ba2b0e3 hack: install buildx in util
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-12-16 17:31:17 +09:00
Akihiro Suda
97b0904bcd hack/util: disallow using DOCKER_BUILDKIT instead of buildx
DOCKER_BUILDKIT CLI is slightly different from buildx.
It is hard to maintain DOCKER_BUILDKIT as a buildx alternative.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-12-16 17:28:46 +09: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
8098b43022 Merge remote-tracking branch 'upstream/master' into fix-tagging
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-05 04:48:49 +01:00
Tõnis Tiigi
e87988a78f Merge pull request #1856 from crazy-max/remove-travis
Remove travis support
2020-12-04 16:10:19 -08:00
CrazyMax
2fe7ea156b Fix image tagging
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-03 09:06:04 +01:00
Tonis Tiigi
859a14da13 hack: fix tagging ga releases
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-12-02 17:34:30 -08:00
CrazyMax
9ed0d25af2 Merge branch 'master' into remove-travis 2020-11-30 10:17:25 +01:00
CrazyMax
6450c51c44 Export to local dir for GHA
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-30 08:24:09 +01:00
CrazyMax
1ac6bd4cbc Fix CI cache
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-29 06:45:39 +01:00
CrazyMax
00570378a8 Remove travis support
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-26 19:02:04 +01:00
Tõnis Tiigi
990fd95310 Merge pull request #1848 from crazy-max/fix-rootless-tag
Fix rootless tag
2020-11-25 23:41:42 -08:00
CrazyMax
731ee4dde7 Pick from #1845
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-26 06:13:08 +01:00
CrazyMax
4140a8e176 Fix rootless tag
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-26 05:51:58 +01:00
Akihiro Suda
24affe0a40 hack/util: remove unused buildmode
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-11-26 13:43:43 +09:00
CrazyMax
d754dda292 Refactor frontend for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-26 02:13:18 +01:00
CrazyMax
d56ddccf0a Refactor release for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-24 22:51:57 +01:00
CrazyMax
6b32ab4494 Refactor cross for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-23 19:27:58 +01:00
Tõnis Tiigi
cdef71b12a Merge pull request #1832 from crazy-max/yamllint
Add yamllint
2020-11-22 11:43:28 -08:00
CrazyMax
072078a403 Add lint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-22 18:11:05 +01:00
CrazyMax
135782149d Refactor test for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-22 08:36:43 +01:00
CrazyMax
4edf93254e Merge branch 'master' into ghactions-test 2020-11-22 05:24:32 +01:00
CrazyMax
e22c19d77f Refactor test for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-22 04:04:01 +01:00
CrazyMax
b4bdad2bd1 Refactor generators for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-22 01:34:36 +01:00
Tibor Vass
1fbb7a0a37 Merge pull request #1824 from crazy-max/ghactions-validate
Refactor validate for GitHub Actions
2020-11-21 12:58:22 -08:00
CrazyMax
a571db42a3 Refactor validate for GitHub Actions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-21 21:36:54 +01:00
CrazyMax
a13c69ae8d Fix test
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-21 05:50:13 +01:00
Tonis Tiigi
81f74a9c89 dockerfile: rename experimental channel to labs
Experimental name confuses users as backwards compatibility
rules are different for other tools called experimental.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-11-17 07:42:50 -08:00
Tonis Tiigi
906e34510d dockerfile: update run mounts to stable channel
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-04 22:22:08 -07:00
Paul "TBBle" Hampson
3132f4d0ed Clarify the gateway 'test' as a build-test
It also doesn't need dockerd added to its container when it builds.

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
2020-07-30 23:12:29 +10:00
Tonis Tiigi
70c2ab7f4d hack: use caching for master deploy
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-28 19:59:17 -07: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