2021-03-17 15:33:02 +01:00
|
|
|
# photon based image
|
|
|
|
FROM photon:4.0
|
|
|
|
ENV LANG C.UTF-8
|
2021-10-26 09:49:09 +02:00
|
|
|
ENV HELM_EXPERIMENTAL_OCI=1
|
2022-01-19 11:26:09 +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
|
|
|
|
|
|
|
COPY --from=tool_builder /tool/tools.tar.gz /usr/local/bin
|
|
|
|
|
2023-06-06 04:45:28 +02:00
|
|
|
RUN tdnf update -y && tdnf install -y \
|
2021-03-17 15:33:02 +01:00
|
|
|
wget \
|
|
|
|
git \
|
|
|
|
openjdk8 \
|
|
|
|
iproute2 \
|
|
|
|
iptables \
|
|
|
|
build-essential \
|
|
|
|
sed \
|
|
|
|
openssl-devel \
|
|
|
|
tar \
|
|
|
|
which \
|
|
|
|
procps-ng \
|
|
|
|
gzip && \
|
|
|
|
tdnf erase -y toybox && \
|
|
|
|
tdnf install -y python3 python3-pip python3-setuptools httpd && \
|
2022-03-25 06:07:07 +01:00
|
|
|
pip3 install --upgrade pip pyasn1 google-apitools==0.5.31 gsutil python-dateutil \
|
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 && \
|
|
|
|
tdnf clean all
|
|
|
|
|
|
|
|
RUN pwd && ls && \
|
|
|
|
# Install docker
|
|
|
|
DOCKER_VERSION=20.10.3 && 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
|
|
|
|
|
2023-06-06 04:45:28 +02:00
|
|
|
RUN tdnf install -y podman
|
|
|
|
|
2021-03-17 15:33:02 +01:00
|
|
|
VOLUME /var/lib/docker
|