mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
d130e7bb5b
Update e2e engine image 1. Update containerd version to 1.7.1 2. Update docker compose version to 2.18.1 3. Update helm version to 3.12.0 4. Update ORAS version to 1.0.0 5. Update CNAB version to 0.4.0 6. Update imgpkg version to 0.36.2 7. Update cosign version to 2.0.2 8. Update docker version to 24.0.2 9. Update chromedriver version to 114.0.5735.16 Signed-off-by: Yang Jiao <jiaoya@vmware.com>
67 lines
2.5 KiB
Docker
67 lines
2.5 KiB
Docker
#ubuntm based image
|
|
FROM ubuntu:20.04
|
|
ENV TZ=Asia/Shanghai \
|
|
DEBIAN_FRONTEND=noninteractive
|
|
ENV LANG C.UTF-8
|
|
ENV HELM_EXPERIMENTAL_OCI=1
|
|
ENV COSIGN_PASSWORD=Harbor12345
|
|
ENV COSIGN_EXPERIMENTAL=1
|
|
ENV COSIGN_OCI_EXPERIMENTAL=1
|
|
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 \
|
|
jq \
|
|
# certutil
|
|
libnss3-tools \
|
|
google-chrome-stable
|
|
|
|
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 && \
|
|
python -m pip install --upgrade pip
|
|
|
|
RUN pip3 install --upgrade pip pyasn1 google-apitools==0.5.31 gsutil \
|
|
robotframework==6.0.1 robotframework-sshlibrary robotframework-httplibrary \
|
|
requests dbbot robotframework-seleniumlibrary robotframework-pabot \
|
|
robotframework-JSONLibrary hurry.filesize --upgrade && \
|
|
apt-get clean all
|
|
# Upgrade chromedriver version to 113.0.5672.24
|
|
RUN wget -N https://chromedriver.storage.googleapis.com/113.0.5672.24/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 pwd && ls && \
|
|
# Install docker
|
|
DOCKER_VERSION=24.0.2 && 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 && \
|
|
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
|