feat(container): add ncurses, bind Ctrl+L to clear, and set container hostname
This commit is contained in:
1 parent
a612549e33
commit
956abecbae
2 files changed
+4
-1
No files matched your search
+3
-1
@@ -22,12 +22,14 @@ RUN sed -i 's|https://alpha.de.repo.voidlinux.org|https://repo-default.voidlinux
|
|||||||
tree \
|
tree \
|
||||||
shadow \
|
shadow \
|
||||||
sudo \
|
sudo \
|
||||||
|
ncurses \
|
||||||
&& xbps-remove -Ooy
|
&& xbps-remove -Ooy
|
||||||
|
|
||||||
# Create user 'kiskaadee' (UID 1000)
|
# Create user 'kiskaadee' (UID 1000)
|
||||||
RUN useradd -m -u 1000 -s /bin/bash kiskaadee \
|
RUN useradd -m -u 1000 -s /bin/bash kiskaadee \
|
||||||
&& echo "kiskaadee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
|
&& echo "kiskaadee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
|
||||||
&& echo 'PS1="\u - void linux \w \$ "' >> /home/kiskaadee/.bashrc
|
&& echo 'PS1="\u - void linux \w \$ "' >> /home/kiskaadee/.bashrc \
|
||||||
|
&& echo "bind -x '\"\C-l\": clear'" >> /home/kiskaadee/.bashrc
|
||||||
|
|
||||||
# Set workspace directory
|
# Set workspace directory
|
||||||
WORKDIR /home/kiskaadee/fds
|
WORKDIR /home/kiskaadee/fds
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ echo "🚀 Entering $IMAGE_NAME container (workspace: $DATA_DIR)..."
|
|||||||
# - Mount host data directory to /home/kiskaadee/fds for persistent work
|
# - Mount host data directory to /home/kiskaadee/fds for persistent work
|
||||||
# - Grant SYS_PTRACE and unconfined seccomp to allow strace / proc inspection of file descriptors
|
# - Grant SYS_PTRACE and unconfined seccomp to allow strace / proc inspection of file descriptors
|
||||||
exec docker run --rm -it \
|
exec docker run --rm -it \
|
||||||
|
--hostname fds-lab \
|
||||||
--cap-add=SYS_PTRACE \
|
--cap-add=SYS_PTRACE \
|
||||||
--security-opt seccomp=unconfined \
|
--security-opt seccomp=unconfined \
|
||||||
-v "$DATA_DIR:/home/kiskaadee/fds" \
|
-v "$DATA_DIR:/home/kiskaadee/fds" \
|
||||||
|
|||||||
Reference in new issue
Block a user