File tree Expand file tree Collapse file tree 5 files changed +15
-3
lines changed Expand file tree Collapse file tree 5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1111 # Needed to install go
1212 OS : linux
1313 ARCH : amd64
14- GOVERSION : 1.11
14+ GOVERSION : 1.13
1515 # Needed to install protoc
1616 PROTOC_VERSION : 3.6.1
1717
Original file line number Diff line number Diff line change 11# NOTE(dperny): for some reason, alpine was giving me trouble
2- FROM golang:1.11.0-stretch
2+ ARG GO_VERSION=1.13.15
3+ ARG DEBIAN_FRONTEND=noninteractive
4+ ARG BASE_DEBIAN_DISTRO="buster"
5+ ARG GOLANG_IMAGE="golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO}"
6+
7+ FROM ${GOLANG_IMAGE}
38
49RUN apt-get update && apt-get install -y make git unzip
510
@@ -16,6 +21,7 @@ WORKDIR /go/src/github.com/docker/swarmkit/
1621# install the dependencies from `make setup`
1722# we only copy `direct.mk` to avoid busting the cache too easily
1823COPY direct.mk .
24+ COPY hack/protobuild hack/protobuild
1925RUN make --file=direct.mk setup
2026
2127# now we can copy the rest
Original file line number Diff line number Diff line change @@ -332,3 +332,5 @@ drzndxnjz3c8iujdewzaplgr6 redis 5 redis:3.0.7 RUNNING
332332```
333333
334334As you can see, every Task running on ` node-1 ` was rebalanced to either ` node-2 ` or ` node-3 ` by the reconciliation loop.
335+
336+
Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ setup: ## install dependencies
4242 # install golangci-lint version 1.17.1 to ./bin/golangci-lint
4343 @curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.17.1
4444 @go get -u github.com/lk4d4/vndr
45- @go get -u github.com/stevvooe/protobuild
45+ # horrid, awful hack to fix CI. we use a version of protobuild that predates
46+ # some changes that result in it failing on some newer version because of
47+ # dependencies. this is a binary checked into this branch, then copied into
48+ # the go path where it would be expected.
49+ @cp $$(go env GOPATH ) /src/github.com/docker/swarmkit/hack/protobuild $$(go env GOPATH ) /bin/protobuild
4650
4751.PHONY : generate
4852generate : protos
You can’t perform that action at this time.
0 commit comments