c74b147fe7
These are mostly CI fixes: * Use podman+cri-o based minikube: * This is still considered experimental, but seems to be more supported than the 'none' driver. * Fix an issue where ssh to the emulated static node fails: * PAM needed to be disabled for openssh * openssh needs more permissions to run - cri-o based minikube is more strict * Rebase test container to Fedora 40 * Update the ingress definition to current API version * Update zookeeper from 3.5.5 to 3.8.4: * required for nodepool 9.0.0+ * Update the percona operator from 1.11 to 1.14: * required for kubernetes 1.24+ * Update test node to Ubuntu Jammy from Ubuntu Bionic * Update minikube to 1.33.1 * Added some more explicit logging to the k8s state, this could be split off into a role in future. Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/924970 Change-Id: I7bf27750073fa807069af6f85f2689173b278abe
34 lines
1.3 KiB
Docker
34 lines
1.3 KiB
Docker
FROM ubuntu:20.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 ; \
|
|
sed -ri 's/UsePAM yes/UsePAM no/' /etc/ssh/sshd_config; \
|
|
sed -ri 's/#PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config; \
|
|
mkdir -p -m 0700 ~/.ssh; \
|
|
if [ -n "${http_proxy}" ]; then \
|
|
sed -ri 's/#PermitUserEnvironment no/PermitUserEnvironment yes/' /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
|
|
COPY --chown=root:root ./ssh_host_ed25519_key.pub /etc/ssh/ssh_host_ed25519_key.pub
|
|
RUN chmod 0600 /etc/ssh/ssh_host_ed25519_key
|
|
RUN chmod 0644 /etc/ssh/ssh_host_ed25519_key.pub
|
|
|
|
EXPOSE 22
|
|
|
|
ENTRYPOINT ["/usr/sbin/sshd", "-D" ]
|