Add tests for backend asset handling and frontend boot sequence, remove outdated MOTD script, and add icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0ad5b5f44f
commit
7937879ace
34 files changed
+613
-116
No files matched your search
+5
-3
@@ -13,8 +13,8 @@ RUN rm -f /etc/dpkg/dpkg.cfg.d/docker \
|
||||
figlet cowsay fortune-mod fortunes-min sl curl wget \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# The home directory stays empty, because Podman copies image content into
|
||||
# tmpfs mounts and Docker does not. All shell configuration lives in /etc.
|
||||
# The content directory is mounted read only as the home directory, so all
|
||||
# shell configuration lives in /etc.
|
||||
# Setuid binaries are useless under no-new-privileges, so they are stripped
|
||||
# to keep the attack surface minimal even if that option is ever dropped.
|
||||
RUN useradd --uid 1000 --no-create-home --home-dir /home/guest --shell /bin/bash guest \
|
||||
@@ -27,4 +27,6 @@ COPY --chmod=0755 bin/status /usr/local/bin/status
|
||||
ENV PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
|
||||
USER guest
|
||||
WORKDIR /home/guest
|
||||
CMD ["/bin/bash", "-l"]
|
||||
# Startup files in the home directory belong to the content, so bash only
|
||||
# reads the system wide configuration.
|
||||
CMD ["/bin/bash", "--rcfile", "/etc/bash.bashrc", "-i"]
|
||||
@@ -4,7 +4,14 @@ shopt -s checkwinsize histappend
|
||||
HISTSIZE=1000
|
||||
HISTCONTROL=ignoredups
|
||||
|
||||
PS1='\[\e[1;32m\]guest@security-command\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ '
|
||||
# The home directory is the read only content, so state goes to /tmp.
|
||||
HISTFILE=/tmp/.bash_history
|
||||
export LESSHISTFILE=-
|
||||
export XDG_CONFIG_HOME=/tmp/.config
|
||||
export XDG_CACHE_HOME=/tmp/.cache
|
||||
export XDG_STATE_HOME=/tmp/.local/state
|
||||
|
||||
PS1='\[\e[1;31m\]guest@security-command\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ '
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias ll='ls -lah --color=auto'
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
if [ -r /srv/www/motd ]; then
|
||||
cat /srv/www/motd
|
||||
else
|
||||
printf '%s\n' "Welcome. The content lives in /srv/www, and 'status' shows your session."
|
||||
fi
|
||||
Reference in new issue
Block a user