2021-03-17 15:33:02 +01:00
|
|
|
#ubuntm based image
|
2022-11-14 07:02:23 +01:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
ENV TZ=Asia/Shanghai \
|
|
|
|
DEBIAN_FRONTEND=noninteractive
|
2021-03-17 15:33:02 +01:00
|
|
|
ENV LANG C.UTF-8
|
2021-10-26 11:27:45 +02:00
|
|
|
ENV HELM_EXPERIMENTAL_OCI=1
|
2022-01-17 08:40:49 +01:00
|
|
|
ENV COSIGN_PASSWORD=Harbor12345
|
2023-05-29 05:55:14 +02:00
|
|
|
ENV COSIGN_EXPERIMENTAL=1
|
|
|
|
ENV COSIGN_OCI_EXPERIMENTAL=1
|
2023-11-07 04:05:29 +01:00
|
|
|
ENV NOTATION_EXPERIMENTAL=1
|
|
|
|
|
2021-03-17 15:33:02 +01:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends wget curl gnupg2
|
|
|
|
RUN apt-get install libseccomp2
|
|
|
|
RUN wget --no-check-certificate -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
|
|
|
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
|
|
|
|
|
|
|
|
COPY --from=tool_builder /tool/tools.tar.gz /usr/local/bin
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
git \
|
|
|
|
openjdk-8-jdk \
|
|
|
|
iproute2 \
|
|
|
|
iptables \
|
|
|
|
build-essential \
|
|
|
|
sed \
|
|
|
|
libssl-dev \
|
|
|
|
tar \
|
|
|
|
unzip \
|
|
|
|
gzip \
|
2021-11-01 04:27:52 +01:00
|
|
|
jq \
|
2021-03-17 15:33:02 +01:00
|
|
|
# certutil
|
|
|
|
libnss3-tools \
|
|
|
|
google-chrome-stable
|
|
|
|
|
2022-11-14 07:02:23 +01:00
|
|
|
RUN apt-get update -y; apt-get install -y python3.9 && \
|
|
|
|
rm /usr/bin/python; ln -s /usr/bin/python3.9 /usr/bin/python; apt-get install -y python3-pip && \
|
2021-03-17 15:33:02 +01:00
|
|
|
python -m pip install --upgrade pip
|
|
|
|
|
|
|
|
RUN pip3 install --upgrade pip pyasn1 google-apitools==0.5.31 gsutil \
|
2022-11-14 07:02:23 +01:00
|
|
|
robotframework==6.0.1 robotframework-sshlibrary robotframework-httplibrary \
|
|
|
|
requests dbbot robotframework-seleniumlibrary robotframework-pabot \
|
2021-03-17 15:33:02 +01:00
|
|
|
robotframework-JSONLibrary hurry.filesize --upgrade && \
|
|
|
|
apt-get clean all
|
2023-11-07 04:05:29 +01:00
|
|
|
# Upgrade chromedriver version to 119.0.6045.105
|
|
|
|
RUN wget -N https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chromedriver-linux64.zip && \
|
|
|
|
unzip -j chromedriver-linux64.zip && \
|
2021-03-17 15:33:02 +01:00
|
|
|
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 pwd && ls && \
|
|
|
|
# Install docker
|
2023-05-29 05:55:14 +02:00
|
|
|
DOCKER_VERSION=24.0.2 && wget https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz && \
|
2021-03-17 15:33:02 +01:00
|
|
|
tar --strip-components=1 -xvzf docker-$DOCKER_VERSION.tgz -C /usr/bin && \
|
|
|
|
rm docker-$DOCKER_VERSION.tgz
|
|
|
|
|
|
|
|
COPY containerd_config.toml /etc/containerd/config.toml
|
|
|
|
COPY busybox.tar /
|
|
|
|
# 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
|
|
|
|
|
|
|
|
RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh && \
|
|
|
|
mkdir -p $HOME/.pki/nssdb && \
|
|
|
|
echo Harbor12345 > password.ca && \
|
|
|
|
certutil -d sql:$HOME/.pki/nssdb -N -f password.ca
|
|
|
|
|
|
|
|
VOLUME /var/lib/docker
|