From 57f321b14b8afde3fbd904e981b7b236ceedd4b8 Mon Sep 17 00:00:00 2001 From: Joakim Roubert Date: Mon, 15 Jun 2020 19:49:26 +0200 Subject: [PATCH] Use buster for base and web images too (#4567) Requires setting iptables-legacy as the iptables provider. Signed-off-by: Joakim Roubert --- Dockerfile-base | 7 ++++++- Dockerfile-debug | 2 +- bin/docker-build-base | 2 +- bin/docker-pull-deps | 2 +- bin/docker-push-deps | 2 +- cni-plugin/Dockerfile | 2 +- web/Dockerfile | 4 ++-- 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Dockerfile-base b/Dockerfile-base index 326704520..80deecde3 100644 --- a/Dockerfile-base +++ b/Dockerfile-base @@ -3,7 +3,7 @@ # This means that all Linkerd containers share a common set of tools, and furthermore, they # are highly cacheable at runtime. -FROM debian:stretch-20190812-slim +FROM debian:buster-20200514-slim RUN apt-get update \ && apt-get install -y --no-install-recommends \ @@ -13,3 +13,8 @@ RUN apt-get update \ jq \ nghttp2 \ && rm -rf /var/lib/apt/lists/* + +# Switching base image from stretch to buster, we need to use iptables-legacy +# if no changes to how iptables is invoked are done. +RUN update-alternatives --set iptables /usr/sbin/iptables-legacy \ + && update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy diff --git a/Dockerfile-debug b/Dockerfile-debug index 4192cba7a..6d7e9276e 100644 --- a/Dockerfile-debug +++ b/Dockerfile-debug @@ -1,4 +1,4 @@ -FROM gcr.io/linkerd-io/base:2019-09-04.01 +FROM gcr.io/linkerd-io/base:2020-06-08.01 RUN apt-get update && apt-get install -y --no-install-recommends \ tcpdump \ iproute2 \ diff --git a/bin/docker-build-base b/bin/docker-build-base index 3ab68bfcb..46f7be11f 100755 --- a/bin/docker-build-base +++ b/bin/docker-build-base @@ -15,7 +15,7 @@ rootdir=$( cd "$bindir"/.. && pwd ) # shellcheck source=_docker.sh . "$bindir"/_docker.sh -tag=2019-09-04.01 +tag=2020-06-08.01 if (docker_pull base $tag); then echo "$(docker_repo base):$tag" diff --git a/bin/docker-pull-deps b/bin/docker-pull-deps index d64d3113a..9824fc9b4 100755 --- a/bin/docker-pull-deps +++ b/bin/docker-pull-deps @@ -9,5 +9,5 @@ bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd ) # shellcheck source=_tag.sh . "$bindir"/_tag.sh -docker_pull base 2019-09-04.01 || true +docker_pull base 2020-06-08.01 || true docker_pull go-deps "$(go_deps_sha)" || true diff --git a/bin/docker-push-deps b/bin/docker-push-deps index 108215efc..770ac4844 100755 --- a/bin/docker-push-deps +++ b/bin/docker-push-deps @@ -9,5 +9,5 @@ bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd ) # shellcheck source=_tag.sh . "$bindir"/_tag.sh -docker_push base 2019-09-04.01 +docker_push base 2020-06-08.01 docker_push go-deps "$(go_deps_sha)" diff --git a/cni-plugin/Dockerfile b/cni-plugin/Dockerfile index 1fd771d7a..e1b270a22 100644 --- a/cni-plugin/Dockerfile +++ b/cni-plugin/Dockerfile @@ -6,7 +6,7 @@ COPY controller controller COPY cni-plugin cni-plugin RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/linkerd-cni -v -mod=readonly ./cni-plugin/ -FROM gcr.io/linkerd-io/base:2019-09-04.01 +FROM gcr.io/linkerd-io/base:2020-06-08.01 WORKDIR /linkerd RUN curl -kL -o $(which jq) https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 COPY --from=golang /go/bin/linkerd-cni /opt/cni/bin/ diff --git a/web/Dockerfile b/web/Dockerfile index e442dafad..3e4335a92 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,5 +1,5 @@ ## bundle web assets -FROM node:14-stretch as webpack-bundle +FROM node:14-buster as webpack-bundle RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.1 --network-concurrency 1 ENV PATH /root/.yarn/bin:$PATH @@ -32,7 +32,7 @@ COPY pkg pkg RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -o web/web -ldflags "-s -w" ./web ## package it all up -FROM debian:stretch-20190812-slim +FROM debian:buster-20200514-slim WORKDIR /linkerd COPY LICENSE .