beef up the AI/ML framework tests by adding InfluxDB as data source and populate...
[it/test.git] / XTesting / kubeadm / Dockerfile
1 # Use imutable image tags rather than mutable tags (like ubuntu:20.04)
2 FROM ubuntu:focal-20220531
3
4 ARG ARCH=amd64
5 ARG KUBE_VERSION=v1.19.16
6 ARG TZ=Etc/UTC
7 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
8
9 RUN apt update -y \
10     && apt install -y \
11     libssl-dev python3-dev sshpass apt-transport-https jq moreutils \
12     ca-certificates curl gnupg2 software-properties-common python3-pip unzip rsync git \
13     && rm -rf /var/lib/apt/lists/*
14
15
16 ENV LANG=C.UTF-8
17
18 WORKDIR /kubeadm
19 COPY . .
20
21 RUN /usr/bin/python3 -m pip install --no-cache-dir pip -U \
22     && python3 -m pip install --no-cache-dir -r requirements.txt \
23     && update-alternatives --install /usr/bin/python python /usr/bin/python3 1
24
25 RUN  curl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBE_VERSION/bin/linux/$ARCH/kubectl \
26     && chmod a+x kubectl \
27     && mv kubectl /usr/local/bin/kubectl
28
29 RUN chmod a+x deploy.sh
30
31 CMD /kubeadm/deploy.sh