2020-09-08 14:09:54 +02:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
# V 2.0
|
|
|
|
# V 2.0.1: upgrade docker to version 19.03.12
|
2021-01-04 12:17:51 +01:00
|
|
|
# V 2.5 Add support for e2e py-test (especially containerd)
|
2021-01-19 11:12:23 +01:00
|
|
|
# V 2.6 docker 19.03.12
|
2021-01-04 12:17:51 +01:00
|
|
|
# V 2.6.1 upgrade helm2, helm3 and docker 20.10.1
|
2020-09-08 14:09:54 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends wget curl gnupg2
|
2020-10-21 04:56:14 +02:00
|
|
|
RUN apt-get install libseccomp2
|
2020-09-08 14:09:54 +02:00
|
|
|
RUN wget --no-check-certificate -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
2020-07-28 08:56:52 +02:00
|
|
|
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
jq \
|
|
|
|
bc \
|
|
|
|
time \
|
|
|
|
gcc \
|
2020-09-08 14:09:54 +02:00
|
|
|
git \
|
2020-07-28 08:56:52 +02:00
|
|
|
python-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libssl-dev \
|
|
|
|
sshpass \
|
|
|
|
ant \
|
2020-09-08 14:09:54 +02:00
|
|
|
ant-optional \
|
|
|
|
xvfb \
|
2020-07-28 08:56:52 +02:00
|
|
|
libxi6 \
|
|
|
|
libgconf-2-4 \
|
|
|
|
openjdk-8-jdk \
|
|
|
|
rpcbind \
|
|
|
|
nfs-common \
|
|
|
|
unzip \
|
|
|
|
zip \
|
|
|
|
bzip2 \
|
2020-09-08 14:09:54 +02:00
|
|
|
parted \
|
|
|
|
#ip tool
|
|
|
|
#ethtool \
|
|
|
|
iproute2 \
|
|
|
|
#bridge-utils \
|
|
|
|
#iputils-ping \
|
2020-07-28 08:56:52 +02:00
|
|
|
# Add docker in docker support
|
|
|
|
btrfs-tools \
|
|
|
|
e2fsprogs \
|
|
|
|
iptables \
|
|
|
|
xfsprogs \
|
|
|
|
dnsutils \
|
|
|
|
netcat \
|
|
|
|
# Add headless chrome support
|
|
|
|
google-chrome-stable \
|
|
|
|
# Speed up ISO builds with already installed reqs
|
|
|
|
yum \
|
|
|
|
yum-utils \
|
|
|
|
cpio \
|
|
|
|
rpm \
|
|
|
|
ca-certificates \
|
|
|
|
xz-utils \
|
|
|
|
xorriso \
|
|
|
|
sendmail && \
|
2020-09-08 14:09:54 +02:00
|
|
|
# Cleanup
|
2020-07-28 08:56:52 +02:00
|
|
|
apt-get autoremove -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2020-09-08 14:09:54 +02:00
|
|
|
RUN apt-get update && apt-get install -y software-properties-common && \
|
|
|
|
add-apt-repository -y ppa:longsleep/golang-backports
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y golang-go
|
|
|
|
|
|
|
|
RUN apt-get update -y ; apt-get install -y zbar-tools libzbar-dev python-zbar python3.7
|
|
|
|
RUN rm /usr/bin/python ; ln -s /usr/bin/python3.7 /usr/bin/python ; apt-get install -y python3-pip
|
|
|
|
RUN python -m pip install --upgrade pip
|
2020-07-30 10:04:14 +02:00
|
|
|
|
2020-07-28 08:56:52 +02:00
|
|
|
RUN wget -N http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip && \
|
|
|
|
unzip chromedriver_linux64.zip && \
|
|
|
|
chmod +x chromedriver && \
|
|
|
|
mv -f chromedriver /usr/local/share/chromedriver && \
|
|
|
|
ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver && \
|
|
|
|
ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
|
|
|
|
|
|
|
|
RUN apt-get update && apt install libnss3-tools && \
|
|
|
|
mkdir -p $HOME/.pki/nssdb && \
|
|
|
|
echo Harbor12345 > password.ca && \
|
|
|
|
certutil -d sql:$HOME/.pki/nssdb -N -f password.ca
|
|
|
|
|
2020-09-08 14:09:54 +02:00
|
|
|
RUN pip3 install pyasn1 google-apitools==0.5.31 gsutil robotframework==3.2.1 robotframework-sshlibrary robotframework-httplibrary requests dbbot robotframework-seleniumlibrary==4.3.0 robotframework-pabot robotframework-JSONLibrary --upgrade
|
2020-07-28 08:56:52 +02:00
|
|
|
|
2021-01-19 11:12:23 +01:00
|
|
|
ENV CRI_CONTAINERD_VERSION 1.3.4
|
|
|
|
RUN wget https://storage.googleapis.com/cri-containerd-release/cri-containerd-${CRI_CONTAINERD_VERSION}.linux-amd64.tar.gz && \
|
|
|
|
tar --no-overwrite-dir -C / -xzf cri-containerd-${CRI_CONTAINERD_VERSION}.linux-amd64.tar.gz
|
2020-10-21 04:56:14 +02:00
|
|
|
|
2020-07-28 08:56:52 +02:00
|
|
|
# Install docker, docker compose
|
2021-01-04 12:17:51 +01:00
|
|
|
ENV DOCKER_VERSION 20.10.1
|
|
|
|
RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz && \
|
|
|
|
tar --strip-components=1 -xvzf docker-$DOCKER_VERSION.tgz -C /usr/bin && \
|
2020-07-28 08:56:52 +02:00
|
|
|
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
|
|
|
|
chmod +x /usr/local/bin/docker-compose
|
|
|
|
|
|
|
|
RUN wget https://github.com/drone/drone-cli/releases/download/v0.8.3/drone_linux_amd64.tar.gz && tar zxf drone_linux_amd64.tar.gz && \
|
2020-09-08 14:09:54 +02:00
|
|
|
install -t /usr/local/bin drone && mv drone drone_src
|
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& groupadd --system dockremap \
|
|
|
|
&& adduser --system --ingroup dockremap dockremap \
|
|
|
|
&& echo 'dockremap:165536:65536' >> /etc/subuid \
|
|
|
|
&& echo 'dockremap:165536:65536' >> /etc/subgid
|
2020-07-28 08:56:52 +02:00
|
|
|
|
|
|
|
RUN curl -sSL https://github.com/vmware/govmomi/releases/download/v0.16.0/govc_linux_amd64.gz | gzip -d > /usr/local/bin/govc && \
|
|
|
|
chmod +x /usr/local/bin/govc
|
|
|
|
|
2021-01-04 12:17:51 +01:00
|
|
|
RUN wget https://get.helm.sh/helm-v2.16.12-linux-amd64.tar.gz && tar zxvf helm-v2.16.12-linux-amd64.tar.gz && \
|
|
|
|
cp linux-amd64/helm /usr/local/bin/helm && \
|
|
|
|
cp linux-amd64/helm /usr/local/bin/helm2 && \
|
|
|
|
helm init --stable-repo-url https://charts.helm.sh/stable --client-only && \
|
2020-09-08 14:09:54 +02:00
|
|
|
helm plugin install https://github.com/chartmuseum/helm-push
|
2020-07-28 08:56:52 +02:00
|
|
|
|
2021-01-04 12:17:51 +01:00
|
|
|
RUN wget https://get.helm.sh/helm-v3.3.3-linux-amd64.tar.gz && tar zxvf helm-v3.3.3-linux-amd64.tar.gz && \
|
|
|
|
mv linux-amd64/helm /usr/local/bin/helm3 && \
|
2020-09-08 14:09:54 +02:00
|
|
|
helm3 plugin install https://github.com/chartmuseum/helm-push
|
|
|
|
|
2021-01-26 20:09:11 +01:00
|
|
|
RUN curl -LO https://github.com/deislabs/oras/releases/download/v0.9.0/oras_0.9.0_linux_amd64.tar.gz && \
|
2020-09-08 14:09:54 +02:00
|
|
|
mkdir -p oras-install/ && \
|
2021-01-26 20:09:11 +01:00
|
|
|
tar -zxf oras_0.9.0_*.tar.gz -C oras-install/ && \
|
2020-09-08 14:09:54 +02:00
|
|
|
mv oras-install/oras /usr/local/bin/
|
2020-07-28 08:56:52 +02:00
|
|
|
|
|
|
|
RUN wget https://github.com/theupdateframework/notary/releases/download/v0.6.1/notary-Linux-amd64 && \
|
|
|
|
chmod +x notary-Linux-amd64 && \
|
|
|
|
mv notary-Linux-amd64 /usr/local/bin/notary
|
|
|
|
|
|
|
|
RUN wget http://nchc.dl.sourceforge.net/sourceforge/tcl/tcl8.4.11-src.tar.gz && \
|
|
|
|
tar xfvz tcl8.4.11-src.tar.gz && \
|
|
|
|
cd tcl8.4.11/unix && \
|
|
|
|
sed -i "s/relid'/relid/" configure && \
|
|
|
|
./configure --prefix=/ixdba.net && \
|
|
|
|
make && \
|
|
|
|
make install && \
|
|
|
|
cp -r * ../tools && \
|
|
|
|
cd .. && \
|
|
|
|
cp -r tools / && \
|
|
|
|
cd / && \
|
|
|
|
wget http://sourceforge.net/projects/expect/files/Expect/5.45/expect5.45.tar.gz && \
|
|
|
|
tar xzvf expect5.45.tar.gz && \
|
|
|
|
cd expect5.45 && \
|
|
|
|
./configure --prefix=/tools --with-tcl=/tools --with-x=no && \
|
|
|
|
make && \
|
|
|
|
make install && \
|
|
|
|
cd /ixdba.net/bin && \
|
|
|
|
mv expect /usr/local/bin/expect
|
|
|
|
|
|
|
|
RUN CNAB_PATH=$(go env GOPATH)/src/github.com/docker && mkdir -p $CNAB_PATH && cd $CNAB_PATH && git clone https://github.com/cnabio/cnab-to-oci.git && \
|
|
|
|
cd cnab-to-oci && git checkout v0.3.0-beta4 && \
|
|
|
|
go list && \
|
|
|
|
make build && \
|
|
|
|
mv bin/cnab-to-oci /usr/local/bin
|
|
|
|
|
2020-09-08 14:09:54 +02:00
|
|
|
RUN apt-get install -y sudo uuid-dev
|
2020-07-28 08:56:52 +02:00
|
|
|
|
2020-09-08 14:09:54 +02:00
|
|
|
RUN wget https://github.com/sylabs/singularity/releases/download/v3.3.0/singularity-3.3.0.tar.gz && \
|
|
|
|
tar -xzf singularity-3.3.0.tar.gz && \
|
|
|
|
cd singularity && \
|
|
|
|
./mconfig && \
|
|
|
|
make -C builddir && \
|
|
|
|
make -C builddir install
|
2020-07-28 08:56:52 +02:00
|
|
|
|
|
|
|
ENV DIND_COMMIT 3b5fac462d21ca164b3778647420016315289034
|
|
|
|
|
|
|
|
RUN wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /usr/local/bin/dind \
|
2020-09-08 14:09:54 +02:00
|
|
|
&& chmod +x /usr/local/bin/dind
|
2020-07-28 08:56:52 +02:00
|
|
|
|
2020-10-21 04:56:14 +02:00
|
|
|
COPY containerd_config.toml /etc/containerd/config.toml
|
|
|
|
|
2020-07-28 08:56:52 +02:00
|
|
|
# This container needs to be run in privileged mode(run with --privileged option) to make it work
|
|
|
|
COPY dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh
|
2020-10-21 04:56:14 +02:00
|
|
|
|
2020-07-28 08:56:52 +02:00
|
|
|
RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh
|
|
|
|
|
|
|
|
VOLUME /var/lib/docker
|