From 18d87ba494702695be0d9c4f1219f1a1484cd0f5 Mon Sep 17 00:00:00 2001 From: Mario1159 Date: Mon, 7 Aug 2023 02:38:14 -0400 Subject: [PATCH] Initial commit --- README.md | 8 ++++++++ stacks/_base/arch.Dockerfile | 23 +++++++++++++++++++++++ stacks/analog-xk/arch.Dockerfile | 14 ++++++++++++++ stacks/analog-xm/arch.Dockerfile | 24 ++++++++++++++++++++++++ stacks/analog-xm/jammy.Dockerfile | 12 ++++++++++++ wsl_start.ps1 | 11 +++++++++++ 6 files changed, 92 insertions(+) create mode 100644 README.md create mode 100644 stacks/_base/arch.Dockerfile create mode 100644 stacks/analog-xk/arch.Dockerfile create mode 100644 stacks/analog-xm/arch.Dockerfile create mode 100644 stacks/analog-xm/jammy.Dockerfile create mode 100644 wsl_start.ps1 diff --git a/README.md b/README.md new file mode 100644 index 0000000..606a447 --- /dev/null +++ b/README.md @@ -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 -f .Dockerfile ``` \ No newline at end of file diff --git a/stacks/_base/arch.Dockerfile b/stacks/_base/arch.Dockerfile new file mode 100644 index 0000000..01fe0f0 --- /dev/null +++ b/stacks/_base/arch.Dockerfile @@ -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"] \ No newline at end of file diff --git a/stacks/analog-xk/arch.Dockerfile b/stacks/analog-xk/arch.Dockerfile new file mode 100644 index 0000000..70dd461 --- /dev/null +++ b/stacks/analog-xk/arch.Dockerfile @@ -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"] \ No newline at end of file diff --git a/stacks/analog-xm/arch.Dockerfile b/stacks/analog-xm/arch.Dockerfile new file mode 100644 index 0000000..111e554 --- /dev/null +++ b/stacks/analog-xm/arch.Dockerfile @@ -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"] \ No newline at end of file diff --git a/stacks/analog-xm/jammy.Dockerfile b/stacks/analog-xm/jammy.Dockerfile new file mode 100644 index 0000000..644c782 --- /dev/null +++ b/stacks/analog-xm/jammy.Dockerfile @@ -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"] \ No newline at end of file diff --git a/wsl_start.ps1 b/wsl_start.ps1 new file mode 100644 index 0000000..862b94e --- /dev/null +++ b/wsl_start.ps1 @@ -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 \ No newline at end of file