6 Commits
Author SHA1 Message Date
marc 18689ee75f artixvnc
Docker / build (push) Canceled after 0s
2022-10-23 01:52:03 +02:00
marc 0e62dfab7f rip bat 2022-10-23 01:44:12 +02:00
marc adfe40a15e make artix 2022-10-19 11:16:09 +02:00
marc 481302a146 bye podman 2022-10-06 21:02:15 +02:00
marc e8b4959b17 artix docker-compose.yml 2022-10-02 23:31:34 +02:00
marc 2e457664f7 artix 2022-10-02 23:30:59 +02:00
11 changed files with 175 additions and 13 deletions
-2
View File
@@ -1,7 +1,5 @@
liberapay: marcpartensky
patreon: marcpartensky
github: marcpartensky
custom:
# - monero:43J2XmRtjDPRLD35UsYGH2AZamFBQz7dt4VdvZXVm3SuadTrvcoXUXBRUNHqukFte23Q5TWXqhbwaLJJgoVQzzbe2AJDANQ
- https://paypal.me/marcpartensky
- https://buymeacoffee.com/marcpartensky
+8 -5
View File
@@ -1,4 +1,4 @@
name: Docker build test
name: Docker
on:
schedule:
@@ -20,12 +20,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v2
- name: Update apt
run: sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
- name: Install make
run: sudo apt install make docker-compose -y
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: build base
run: make buildbase
- name: build xorg
+9 -6
View File
@@ -1,4 +1,4 @@
name: Docker push
name: Docker
on:
schedule:
@@ -14,15 +14,18 @@ on:
pull_request:
jobs:
buildandpush:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v2
- name: Update apt
run: sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
- name: Install make
run: sudo apt install make docker-compose -y
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: build base
run: make buildbase
- name: build xorg
+4
View File
@@ -6,6 +6,8 @@ vnc: buildvnc
docker-compose up vnc
parabola: buildparabola
docker-compose up parabola
artix: buildartix
docker-compose up artix
buildbase:
docker-compose build base
@@ -15,6 +17,8 @@ buildvnc: buildxorg
docker-compose build vnc
buildparabola: buildbase
docker-compose build parabola
buildartix:
docker-compose build artix
buildall: buildbase buildxorg buildvnc buildparabola
+59
View File
@@ -0,0 +1,59 @@
FROM artixlinux/openrc:latest
LABEL maintainer="Marc Partensky"
RUN pacman -Syyyu --needed --noconfirm base-devel
RUN pacman -S --noconfirm git
RUN useradd --create-home --groups wheel --shell /usr/bin/zsh marc
RUN passwd -d marc
RUN echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
USER marc
WORKDIR /tmp
RUN git clone https://aur.archlinux.org/paru.git
WORKDIR /tmp/paru
RUN makepkg -si --noconfirm
RUN paru -Syyyu --noconfirm \
zsh \
neovim \
exa \
paruz \
make \
npm \
go \
pod2man \
openssh \
stow-git
# RUN paru -aS --noconfirm \
# bat
COPY entrypoint.sh /tmp/entrypoint.sh
USER root
RUN cat /etc/locale.gen
# RUN sed -i -e 's/en_US.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen
# RUN cat /etc/locale.gen
# RUN locale-gen
# RUN cat /etc/locale.gen
ENV LC_ALL fr_FR.UTF-8
ENV LANG fr_FR.UTF-8
ENV LANGUAGE fr_FR:fr
USER marc
ENV HOST docker
WORKDIR /home/marc
RUN mkdir git
RUN git clone https://github.com/marcpartensky/dotfiles git/dotfiles
RUN zsh git/dotfiles/main.sh
RUN make -C git/dotfiles stow
RUN touch .profile
RUN git clone https://github.com/marcpartensky/nvim ~/.config/nvim
RUN make -C ~/.config/nvim setup
ENTRYPOINT [ "/tmp/entrypoint.sh" ]
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/zsh
ssh-keygen -q -t rsa -N '' -f $HOME/.ssh/id_rsa
exec zsh
+24
View File
@@ -0,0 +1,24 @@
FROM marcpartensky/artix
LABEL maintainer=<marc.partensky@gmail.com>
USER marc
EXPOSE 5900 8080
ENV DISPLAY=:0.0
# Install packages
RUN paru -Syyyu --noconfirm \
# xorg-server required for xdummy
Hyprland-bin \
tigervnc \
novnc \
cron \
ttf-meslo-nerd-font-powerlevel10k
USER root
COPY crontab.txt /var/spool/cron/marc
RUN chmod 600 /var/spool/cron/marc
USER marc
COPY entrypoint.sh /opt/arch/
COPY supervisord.conf /etc/supervisord.conf
# ENTRYPOINT [ "/opt/arch/entrypoint.sh" ]
+1
View File
@@ -0,0 +1 @@
* * * * * /home/marc/.local/bin/wpp -n
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
export WALLPAPERS_PATH=/home/marc/wallpapers
supervisord -l /tmp/supervisord.log
+57
View File
@@ -0,0 +1,57 @@
[supervisord]
nodaemon=true
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[unix_http_server]
file=/tmp/supervisord.sock
[supervisorctl]
serverurl=unix:///tmp/supervisord.sock
[program:xvnc]
command=Xvnc :0 -SecurityTypes None -geometry 1820x980
autorestart=true
user=marc
priority=1
[program:picom]
command=picom
user=marc
autorestart=true
priority=2
[program:dwm]
command=/usr/local/bin/dwm
autorestart=true
user=marc
priority=3
[program:dwmblocks]
command=/usr/local/bin/dwmblocks
autorestart=true
user=marc
priority=4
[program:noVNC]
command=/sbin/novnc --vnc localhost:5900 --listen 8080
autorestart=true
user=marc
priority=3
[program:wallpaper]
command=zsh -c "sleep 2 && /home/marc/.local/bin/wpp -n"
user=marc
priority=5
[program:cron]
command=crond -f
user=root
priority=5
[program:alacritty]
command=alacritty -e neofetch"
autorestart=false
user=marc
priority=5
+5
View File
@@ -10,6 +10,11 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
artix:
image: marcpartensky/artix
build:
context: artix
xorg:
image: marcpartensky/arch:xorg
build: