labs/linux-quest-5 (sha256:a82a8f19612cbf6bc39390fb615ca05a7c8ae9e94960e7df68717cf0a45a43e2)

Published 2026-10-25 14:40:32 +01:00 by romain

Installation

docker pull forge.rdr-it.com/registry/labs/linux-quest-5@sha256:a82a8f19612cbf6bc39390fb615ca05a7c8ae9e94960e7df68717cf0a45a43e2
sha256:a82a8f19612cbf6bc39390fb615ca05a7c8ae9e94960e7df68717cf0a45a43e2

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1792531975'
ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8
RUN /bin/sh -c apt-get update -qq && apt-get install -y -qq --no-install-recommends openssh-server openssh-client sudo procps psmisc iproute2 iputils-ping netcat-openbsd curl nano vim-tiny less tree file bash-completion python3 && rm -rf /var/lib/apt/lists/* && mkdir -p /run/sshd # buildkit
RUN /bin/sh -c useradd -m -u 1000 -s /bin/bash ops && echo 'ops:formation' | chpasswd && passwd -l root # buildkit
COPY files/sshd-quest.conf /etc/ssh/sshd_config.d/00-quest.conf # buildkit
COPY files/sudoers-base /etc/sudoers.d/00-quest-base # buildkit
COPY files/welcome.sh /etc/profile.d/10-quest-welcome.sh # buildkit
COPY files/bashrc-ops /home/ops/.bashrc # buildkit
COPY files/fakectl.py /usr/local/lib/fakectl/fakectl.py # buildkit
COPY files/common.sh /usr/local/lib/quest/common.sh # buildkit
COPY files/verifier /usr/local/bin/verifier # buildkit
COPY files/entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit
RUN /bin/sh -c sed -i '/pam_motd/d' /etc/pam.d/sshd && rm -rf /etc/update-motd.d /etc/motd && chmod 0440 /etc/sudoers.d/00-quest-base && visudo -c -q && chown ops:ops /home/ops/.bashrc && chmod 0755 /usr/local/lib/fakectl/fakectl.py /usr/local/bin/verifier /usr/local/bin/entrypoint.sh && ln -s /usr/local/lib/fakectl/fakectl.py /usr/local/bin/systemctl && ln -s /usr/local/lib/fakectl/fakectl.py /usr/local/bin/journalctl && ln -s /usr/local/lib/fakectl/fakectl.py /usr/local/bin/fakectl && mkdir -p /usr/local/lib/quest/boot.d /usr/local/lib/quest/post.d /etc/systemd/system/multi-user.target.wants /var/log/journal-sim # buildkit
EXPOSE [22/tcp]
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["/usr/sbin/sshd" "-D" "-e"]
RUN /bin/sh -c useradd -r -M -s /usr/sbin/nologin inventory # buildkit
COPY files/inventory-api /opt/inventory-api/inventory-api # buildkit
COPY files/inventory-api.conf /etc/inventory-api/inventory-api.conf # buildkit
COPY files/inventory-api.service /etc/systemd/system/inventory-api.service # buildkit
COPY files/inventory-client /opt/inventory-client/inventory-client # buildkit
COPY files/10-role.sh /usr/local/lib/quest/boot.d/10-role.sh # buildkit
COPY files/ticket.txt /home/ops/ticket.txt # buildkit
COPY files/sudoers-mission /etc/sudoers.d/10-mission # buildkit
COPY files/welcome-web.txt /usr/local/lib/quest/welcome-web.txt # buildkit
COPY files/welcome-api.txt /usr/local/lib/quest/welcome-api.txt # buildkit
COPY quest-check /usr/local/sbin/quest-check # buildkit
RUN /bin/sh -c chmod 0755 /opt/inventory-api/inventory-api /opt/inventory-client/inventory-client /usr/local/lib/quest/boot.d/10-role.sh && chmod 0644 /etc/inventory-api/inventory-api.conf /etc/systemd/system/inventory-api.service && ln -s /etc/systemd/system/inventory-api.service /etc/systemd/system/multi-user.target.wants/inventory-api.service && chmod 0440 /etc/sudoers.d/10-mission && visudo -c && chown ops:ops /home/ops/ticket.txt && chown root:root /usr/local/sbin/quest-check && chmod 0700 /usr/local/sbin/quest-check # buildkit
Details
Container
2026-10-25 14:40:32 +01:00
1
OCI / Docker
linux/amd64
59 MiB
Versions (1) View all
latest 2026-10-25