
This image will have all the necessary kubernetes binaries for kubeadm related operations. Change-Id: I301e5fa0b26bad8c49b021d2c267620d940628ed Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
37 lines
1.2 KiB
Docker
37 lines
1.2 KiB
Docker
ARG FROM=quay.io/airshipit/ubuntu:jammy
|
|
FROM ${FROM}
|
|
|
|
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
|
|
org.opencontainers.image.url='https://airshipit.org' \
|
|
org.opencontainers.image.documentation='https://opendev.org/airship/porthole' \
|
|
org.opencontainers.image.source='https://opendev.org/airship/porthole' \
|
|
org.opencontainers.image.vendor='The Airship Authors' \
|
|
org.opencontainers.image.licenses='Apache-2.0'
|
|
|
|
ARG KUBE_VERSION=1.33.2
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN set -xe \
|
|
&& sed -i '/nobody/d' /etc/passwd \
|
|
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
|
|
&& apt-get update && apt-get upgrade -y \
|
|
&& apt-get install -y --no-install-recommends \
|
|
bash \
|
|
ca-certificates \
|
|
curl \
|
|
gnupg \
|
|
jq \
|
|
moreutils \
|
|
rsync \
|
|
sudo \
|
|
xz-utils \
|
|
python3.10 \
|
|
python3-pip \
|
|
&& curl --silent -L --remote-name-all --output-dir /usr/bin \
|
|
https://dl.k8s.io/v${KUBE_VERSION}/bin/linux/amd64/{kubeadm,kubelet,kubectl} \
|
|
&& chmod +x /usr/bin/kubeadm /usr/bin/kubectl /usr/bin/kubelet \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
CMD ["/bin/bash"]
|