update workspace
This commit is contained in:
+6
-5
@@ -1,12 +1,13 @@
|
|||||||
FROM golang:1.24
|
FROM alpine/git
|
||||||
RUN git clone https://github.com/iceBear67/bubble /bubble && cd /bubble/ && bash ./build.sh
|
WORKDIR /src
|
||||||
|
RUN git clone https://github.com/iceBear67/bubble .
|
||||||
|
|
||||||
FROM debian:11
|
FROM debian:13
|
||||||
COPY --from=0 /bubble/target/client /bin/bubble
|
COPY --from=0 --chmod=0755 /src/bubble.sh /bin/bubble
|
||||||
RUN <<EOF
|
RUN <<EOF
|
||||||
apt-get update && apt-get upgrade
|
apt-get update && apt-get upgrade
|
||||||
chmod +x /bin/bubble
|
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 iproute2 iputils-ping dnsutils build-essential htop
|
||||||
useradd -m -s /usr/bin/fish user
|
useradd -m -s /usr/bin/fish user
|
||||||
echo "user ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
|
echo "user ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||||
sudo -u user mkdir -p /home/user/.config/fish/
|
sudo -u user mkdir -p /home/user/.config/fish/
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ end
|
|||||||
|
|
||||||
function resume
|
function resume
|
||||||
if test (sudo -u user tmux list-windows | wc -l) -eq 0
|
if test (sudo -u user tmux list-windows | wc -l) -eq 0
|
||||||
|
cd /home/user
|
||||||
sudo -u user tmux
|
sudo -u user tmux
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -23,7 +24,8 @@ function resume
|
|||||||
sudo -u user tmux attach -t 0
|
sudo -u user tmux attach -t 0
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
sudo -u user tmux new-session -c /home/user /usr/bin/fish
|
cd /home/user
|
||||||
|
sudo -u user tmux new-session -c /usr/bin/fish
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user