Update arch machine
This commit is contained in:
parent
2c3fd2379c
commit
24105c4ab5
@ -9,7 +9,6 @@ RUN pacman -Syu --noconfirm && \
|
|||||||
vim \
|
vim \
|
||||||
nvim \
|
nvim \
|
||||||
nano \
|
nano \
|
||||||
htop \
|
|
||||||
lazygit \
|
lazygit \
|
||||||
ttyd \
|
ttyd \
|
||||||
sudo \
|
sudo \
|
||||||
@ -17,24 +16,28 @@ RUN pacman -Syu --noconfirm && \
|
|||||||
net-tools \
|
net-tools \
|
||||||
iputils \
|
iputils \
|
||||||
bind-tools \
|
bind-tools \
|
||||||
|
unzip \
|
||||||
|
yazi \
|
||||||
|
go \
|
||||||
|
zig \
|
||||||
|
ripgrep \
|
||||||
openssh && \
|
openssh && \
|
||||||
pacman -Scc --noconfirm
|
pacman -Scc --noconfirm
|
||||||
|
|
||||||
# Create a workspace directory
|
# Create a workspace directory
|
||||||
RUN mkdir -p /data
|
RUN mkdir -p /data
|
||||||
|
|
||||||
# Create entrypoint script
|
|
||||||
RUN echo '#!/bin/bash' > /entrypoint.sh && \
|
|
||||||
echo 'chmod 600 /root/.ssh/id_rsa' >> /entrypoint.sh && \
|
|
||||||
echo 'exec ttyd -c $TTYD_USERNAME:$TTYD_PASSWORD -W -p 7681 bash' >> /entrypoint.sh && \
|
|
||||||
chmod +x /entrypoint.sh
|
|
||||||
|
|
||||||
# Install Astronvim
|
# Install Astronvim
|
||||||
RUN git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim && \
|
RUN git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim && \
|
||||||
rm -rf ~/.config/nvim/.git
|
rm -rf ~/.config/nvim/.git
|
||||||
|
|
||||||
|
# Setup Git
|
||||||
|
RUN git config --global user.email "git@bouvais.lu"
|
||||||
|
RUN git config --global user.name "adrien"
|
||||||
|
|
||||||
|
# Add Gopls
|
||||||
|
RUN go install golang.org/x/tools/gopls@latest
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
EXPOSE 7681
|
EXPOSE 7681
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
|
12
vms.yml
12
vms.yml
@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
arch-ttyd:
|
arch-ttyd:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.arch-ttyd
|
dockerfile: Dockerfile.arch-ttyd
|
||||||
container_name: arch-ttyd
|
container_name: arch-ttyd
|
||||||
@ -8,10 +8,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./hdd0/vms/arch/data:/data
|
- ./hdd0/vms/arch/data:/data
|
||||||
- ./hdd0/vms/arch/root:/root
|
- ./hdd0/vms/arch/root:/root
|
||||||
- ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro
|
command: >
|
||||||
environment:
|
ttyd
|
||||||
- TTYD_USERNAME=${TTYD_USERNAME:-admin}
|
-p 7681
|
||||||
- TTYD_PASSWORD=${MASTER_PASSWORD:-changeme}
|
-c "${TTYD_USERNAME}:${MASTER_PASSWORD}"
|
||||||
|
-W
|
||||||
|
bash
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.arch.rule=Host(`arch.bouvais.lu`)"
|
- "traefik.http.routers.arch.rule=Host(`arch.bouvais.lu`)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user