Initial commit
This commit is contained in:
commit
18d87ba494
8
README.md
Normal file
8
README.md
Normal 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>```
|
23
stacks/_base/arch.Dockerfile
Normal file
23
stacks/_base/arch.Dockerfile
Normal 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
stacks/analog-xk/arch.Dockerfile
Normal file
14
stacks/analog-xk/arch.Dockerfile
Normal 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"]
|
24
stacks/analog-xm/arch.Dockerfile
Normal file
24
stacks/analog-xm/arch.Dockerfile
Normal 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"]
|
12
stacks/analog-xm/jammy.Dockerfile
Normal file
12
stacks/analog-xm/jammy.Dockerfile
Normal 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
11
wsl_start.ps1
Normal 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
|
Loading…
Reference in New Issue
Block a user