Initial commit

This commit is contained in:
Mario Romero 2023-08-07 02:38:14 -04:00
commit 18d87ba494
6 changed files with 92 additions and 0 deletions

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# OSIC Stacks
## Open source Integrated Circuits Docker Stacks
## Windows start container
```powershell -executionpolicy bypass -file .\wsl_start.ps1```
## Build images
``` docker build -t <tag> -f <arch/jammy>.Dockerfile <path>```

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"]

View File

@ -0,0 +1,14 @@
# OSIC Stacks - analog-xk-arch
# Dev enviroment for analog circuits development using xschem and klayout.
FROM osicstack-base-arch
# Install packages
RUN aur-install xschem klayout
# Clean cache
RUN pacman -Scc
USER designer
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]

View File

@ -0,0 +1,24 @@
# OSIC Stacks - analog-xm-arch
# Dev enviroment for analog circuits development using xschem and magic.
FROM greyltc/archlinux-aur:paru
# Update packages
RUN pacman -Syuq --noconfirm
# Install packages
RUN aur-install sudo xschem magic python python-pipx xz git gnu-free-fonts
# Install volare
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
USER designer
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]

View File

@ -0,0 +1,12 @@
# OSIC Stacks - analog-xm-jammy
# Dev enviroment for analog circuits development using xschem and magic.
FROM phusion/baseimage:jammy-1.0.1
# Install packages
RUN install_clean xschem magic python3 python3-pip xz-utils git
# Install volare
RUN python3 -m pip install --upgrade --no-cache-dir volare
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]

11
wsl_start.ps1 Normal file
View File

@ -0,0 +1,11 @@
$imagename = Read-Host -Prompt 'Container image to initialize: '
$command = ("docker run -d " +
"-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