add hint message

This commit is contained in:
iceBear67
2025-03-22 15:07:47 +08:00
parent 5b4690e854
commit ae9c6d21c6
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ FROM debian:11
COPY --from=0 /bubble/target/client /bin/bubble COPY --from=0 /bubble/target/client /bin/bubble
RUN <<EOF RUN <<EOF
apt-get update && apt-get upgrade apt-get update && apt-get upgrade
chmod +x /bin/bubble
apt-get install -y curl jq neovim htop fish tmux sudo git apt-get install -y curl jq neovim htop fish tmux sudo git
useradd -m -s /bin/fish user useradd -m -s /bin/fish user
echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user.conf echo "user ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user.conf
+8
View File
@@ -1,3 +1,11 @@
if test -e /workspace/manager.sock
echo "Manager capability is detected. Type 'bubble' for help."
end
if test ! -e /bin/docker
echo "Docker is not installed. Type 'install-docker' to install if needed."
end
function install-docker function install-docker
if test -e /bin/docker if test -e /bin/docker
echo "Docker is already present at /bin/docker." echo "Docker is already present at /bin/docker."