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 11
11
# Needed to install go
12
12
OS : linux
13
13
ARCH : amd64
14
- GOVERSION : 1.11
14
+ GOVERSION : 1.13
15
15
# Needed to install protoc
16
16
PROTOC_VERSION : 3.6.1
17
17
Original file line number Diff line number Diff line change 1
1
# 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}
3
8
4
9
RUN apt-get update && apt-get install -y make git unzip
5
10
@@ -16,6 +21,7 @@ WORKDIR /go/src/github.com/docker/swarmkit/
16
21
# install the dependencies from `make setup`
17
22
# we only copy `direct.mk` to avoid busting the cache too easily
18
23
COPY direct.mk .
24
+ COPY hack/protobuild hack/protobuild
19
25
RUN make --file=direct.mk setup
20
26
21
27
# 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
332
332
```
333
333
334
334
As 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
42
42
# install golangci-lint version 1.17.1 to ./bin/golangci-lint
43
43
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.17.1
44
44
@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 ./hack/protobuild ./bin/protobuild
46
50
47
51
.PHONY : generate
48
52
generate : protos
You can’t perform that action at this time.
0 commit comments