github.com/fafucoder/cilium@v1.6.11/Dockerfile (about)

     1  #
     2  # cilium-envoy from github.com/cilium/proxy
     3  #
     4  FROM quay.io/cilium/cilium-envoy:0a9743dda269a0b0039c9db3cf7e0a637caad7a9 as cilium-envoy
     5  
     6  #
     7  # Cilium incremental build. Should be fast given builder-deps is up-to-date!
     8  #
     9  # cilium-builder tag is the date on which the compatible build image
    10  # was pushed.  If a new version of the build image is needed, it needs
    11  # to be tagged with a new date and this file must be changed
    12  # accordingly.  Keeping the old images available will allow older
    13  # versions to be built while allowing the new versions to make changes
    14  # that are not backwards compatible.
    15  #
    16  FROM quay.io/cilium/cilium-builder:2020-02-17-v1.6 as builder
    17  LABEL maintainer="maintainer@cilium.io"
    18  WORKDIR /go/src/github.com/cilium/cilium
    19  COPY . ./
    20  ARG LOCKDEBUG
    21  ARG V
    22  ARG LIBNETWORK_PLUGIN
    23  #
    24  # Please do not add any dependency updates before the 'make install' here,
    25  # as that will mess with caching for incremental builds!
    26  #
    27  RUN make LOCKDEBUG=$LOCKDEBUG PKG_BUILD=1 V=$V LIBNETWORK_PLUGIN=$LIBNETWORK_PLUGIN \
    28      SKIP_DOCS=true DESTDIR=/tmp/install clean-container build-container install-container
    29  
    30  #
    31  # Cilium runtime install.
    32  #
    33  # cilium-runtime tag is a date on which the compatible runtime base
    34  # was pushed.  If a new version of the runtime is needed, it needs to
    35  # be tagged with a new date and this file must be changed accordingly.
    36  # Keeping the old runtimes available will allow older versions to be
    37  # built while allowing the new versions to make changes that are not
    38  # backwards compatible.
    39  #
    40  FROM quay.io/cilium/cilium-runtime:2020-08-03-v1.6@sha256:f8273dca6345015bb7df3de24073990742dff7cae7d81988ce47e77b5531bf17
    41  LABEL maintainer="maintainer@cilium.io"
    42  COPY --from=builder /tmp/install /
    43  COPY --from=cilium-envoy / /
    44  COPY plugins/cilium-cni/cni-install.sh /cni-install.sh
    45  COPY plugins/cilium-cni/cni-uninstall.sh /cni-uninstall.sh
    46  COPY contrib/packaging/docker/init-container.sh /init-container.sh
    47  WORKDIR /root
    48  RUN groupadd -f cilium \
    49  	&& echo ". /etc/profile.d/bash_completion.sh" >> /root/.bashrc \
    50      && cilium completion bash >> /root/.bashrc \
    51      && sysctl -w kernel.core_pattern=/tmp/core.%e.%p.%t
    52  ENV INITSYSTEM="SYSTEMD"
    53  CMD ["/usr/bin/cilium"]