Re-organize directory structure

This commit is contained in:
Mario Romero 2023-09-03 19:53:58 -03:00
parent 78f7b4fefb
commit be6d12070d
2 changed files with 37 additions and 0 deletions

23
base/arch.Dockerfile Normal file
View File

@ -0,0 +1,23 @@
# OSIC Stacks - osicstack-base-arch
# Base image for OSIC Stacks
FROM greyltc/archlinux-aur:paru
# Update packages
RUN pacman -Syuq --noconfirm
# Install packages
RUN aur-install sudo git python python-pipx xz gnu-free-fonts
# Install volare
ENV PATH="${PATH}:/root/.local/bin"
RUN pipx install volare
# Clean cache
RUN pacman -Scc
# Add main user
RUN useradd -m designer
RUN echo "designer ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/designer
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]

14
scripts/wsl_start.ps1 Normal file
View File

@ -0,0 +1,14 @@
$imagename = Read-Host -Prompt 'Container image to initialize'
$containername = Read-Host -Prompt 'Container instance name [default=$imagename]'
if (!$containername) { $containername = $imagename }
$command = ("docker run -d " +
"--name "+ $containername + " " +
"-v /tmp/.X11-unix:/tmp/.X11-unix " +
"-v /mnt/wslg:/mnt/wsl " +
"-e WAYLAND_DISPLAY=`$WAYLAND_DISPLAY " +
"-e DISPLAY=`$DISPLAY " +
"-e XDG_RUNTIME_DIR=/mnt/wslg " +
$imagename)
wsl bash -ic $command