Files
zuul/doc/source/examples/node-Dockerfile
James E. Blair 9756e0f913 Switch quickstart Dockerfiles to opendevmirror
These two dockerfiles are used to build custom images in the
quickstart.  Switch them to use already existing base layers
from the quay opendevmirror to avoid dockerhub issues.

Change-Id: I5e7edaacdefd133adbca896a6b97004c26dc9b21
2025-02-07 07:23:58 -08:00

31 lines
1.0 KiB
Plaintext

# Mirror of docker.io/library/ubuntu:22.04
FROM quay.io/opendevmirror/ubuntu:22.04
RUN apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get -y install \
git \
openssh-server \
rsync \
&& rm -rf /var/lib/apt/lists/*
# If proxy environment variables supplied during build allow pass through via
# ~/.ssh/environment, as the test env likely will require these set for any
# job launched on the node to be capable of internet access.
RUN set -e ; \
mkdir /var/run/sshd ; \
mkdir -p -m 0700 ~/.ssh; \
if [ -n "${http_proxy}" ]; then \
sed -ri 's/#PermitUserEnvironment no/PermitUserEnvironment yes/g' /etc/ssh/sshd_config; \
echo "http_proxy=${http_proxy}" > ~/.ssh/environment; \
echo "https_proxy=${https_proxy}" >> ~/.ssh/environment; \
echo "no_proxy=${no_proxy}" >> ~/.ssh/environment; \
fi \
;
COPY --chown=root:root ./ssh_host_ed25519_key /etc/ssh/ssh_host_ed25519_key
RUN chmod 0600 /etc/ssh/ssh_host_ed25519_key
EXPOSE 22
ENTRYPOINT ["/usr/sbin/sshd", "-D" ]