File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 17
17
CONTAINERD_REMOTE ?=https://github.com/containerd/containerd.git
18
18
RUNC_REMOTE ?=https://github.com/opencontainers/runc.git
19
19
REF? =HEAD
20
- RUNC_REF? =dc9208a3303feef5b3839f4323d9beb36df0a9dd
21
20
21
+ # Select the default version of Golang and runc based on the containerd source.
22
+ # The runc version commit/tag is defined in vendor.conf. Code below is based on
23
+ # the code used in the containerd repository:
24
+ # https://github.com/containerd/containerd/blob/499fbb0337c9138b5360117e0b25a7a1428f9667/script/setup/install-runc#L24
22
25
ifdef CONTAINERD_DIR
23
26
GOVERSION? =$(shell grep "ARG GOLANG_VERSION" $(CONTAINERD_DIR ) /contrib/Dockerfile.test | awk -F'=' '{print $$2}')
27
+ RUNC_REF? =$(shell grep "opencontainers/runc" "$(CONTAINERD_DIR ) /vendor.conf" | awk '{print $$2}')
24
28
else
25
- # TODO adjust GOVERSION macro to take CONTAINERD_REMOTE into account
29
+ # TODO adjust GOVERSION and RUNC_REF macro to take CONTAINERD_REMOTE into account
26
30
GOVERSION? =$(shell curl -fsSL "https://raw.githubusercontent.com/containerd/containerd/$(REF ) /contrib/Dockerfile.test" | grep "ARG GOLANG_VERSION" | awk -F'=' '{print $$2}')
31
+ RUNC_REF? =$(shell curl -fsSL "https://raw.githubusercontent.com/containerd/containerd/$(REF ) /vendor.conf" | grep "opencontainers/runc" | awk '{print $$2}')
27
32
endif
28
33
29
34
GOLANG_IMAGE =golang:$(GOVERSION )
You can’t perform that action at this time.
0 commit comments