1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 15:45:53 +01:00
Files
bootc/hack/lldb/Containerfile
Chris Kyrouac 7ec44f6a0b hack: Add remote lldb utilities to hack dir
This is useful for remote debugging bootc running in a VM.

Until podman-bootc has support for forwarding arbitrary ports,
this custom solution is needed.

Signed-off-by: Chris Kyrouac <ckyrouac@redhat.com>
2024-06-11 10:21:59 -04:00

19 lines
703 B
Docker

FROM quay.io/centos-bootc/centos-bootc-dev:stream9
COPY ./etc/sysctl.conf /etc/sysctl.conf
COPY ./etc/systemd/system/lldb-server.service /etc/systemd/system/lldb-server.service
COPY ./etc/sudoers.d/wheel-nopasswd /etc/sudoers.d
ARG sshpubkey
RUN dnf -y install lldb firewalld vim && \
firewall-offline-cmd --add-port 1025-65535/tcp && \
systemctl enable lldb-server.service && \
# add test user
if test -z "$sshpubkey"; then echo "must provide sshpubkey"; exit 1; fi; \
useradd -G wheel test && \
mkdir -m 0700 -p /home/test/.ssh && \
echo $sshpubkey > /home/test/.ssh/authorized_keys && \
chmod 0600 /home/test/.ssh/authorized_keys && \
chown -R test: /home/test