Image is being used in VBO MLOps Bootcamp.
438
FROM rockylinux:8.6
ENV container docker
RUN yum -y update && yum clean all
RUN yum -y install openssh-server python3 sudo passwd systemd
RUN adduser -m test_user && \
echo "Ankara06" | passwd test_user --stdin && \
usermod -aG wheel test_user && \
mkdir /home/test_user/.ssh && \
chown test_user:test_user -R /home/test_user/ && \
chmod 700 /home/test_user/.ssh
RUN echo "%wheel ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
RUN systemctl enable sshd.service
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;
COPY init_script.sh /etc/init.d/
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/usr/sbin/init"]
#!/bin/bash
systemctl start sshd
sleep 3
rm -f /run/nologin
# Execute the original CMD
exec "$@"
docker image build -t veribilimiokulu/mlops-test-server:rocky8.6 .
Content type
Image
Digest
sha256:bea79e598…
Size
232.5 MB
Last updated
almost 2 years ago
docker pull veribilimiokulu/mlops-test-server:rocky8.6-python3.12