Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching image base to debian:9.8-slim #224

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 6 additions & 14 deletions Dockerfile.amd64
Expand Up @@ -16,16 +16,19 @@ ARG BIRD_IMAGE=calico/bird:latest
FROM calico/bpftool:v5.0-amd64 as bpftool
FROM ${BIRD_IMAGE} as bird

FROM debian:buster-slim
FROM debian:9.8-slim
LABEL maintainer "Casey Davenport <casey@tigera.io>"

ARG ARCH=amd64

# Install a backported version of iptables to ensure we have version 1.6.2
RUN printf "deb http://deb.debian.org/debian stretch-backports main\n" > /etc/apt/sources.list.d/backports.list \
&& apt-get update \
&& apt-get -t stretch-backports install -y iptables

# Install remaining runtime deps required for felix from the global repository
RUN apt-get update && apt-get install -y \
ipset \
# For debian:buster-slim, iptables is v1.8.2
iptables \
iputils-arping \
iputils-ping \
iputils-tracepath \
Expand All @@ -43,17 +46,6 @@ RUN apt-get update && apt-get install -y \
procps \
ca-certificates

# Starting with iptables v1.8.2 the binary package includes iptables-nft and
# iptables-legacy, two variants of the iptables command line interface. The
# nftables-based is the default in Debian Buster and works with the nf_tables
# Linux kernel subsystem. The legacy one uses the x_tables Linux kernel
# subsystem. Users can use the update-alternatives system to select one variant
# or the other.
# Force iptables and ip6tables to use legacy and output their status afterwards
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy && \
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy && \
update-alternatives --get-selections

# Copy our bird binaries in
COPY --from=bird /bird* /bin/

Expand Down