2023-09-24 00:35:19 +00:00
|
|
|
# OSIC Stacks - osicstacks-base-desktop
|
2023-09-13 10:52:33 +00:00
|
|
|
# Base image for OSIC Stacks
|
2023-09-24 00:35:19 +00:00
|
|
|
FROM greyltc/archlinux-aur:paru as osicstacks-base-desktop
|
2023-09-13 10:52:33 +00:00
|
|
|
|
|
|
|
# Update packages
|
|
|
|
RUN pacman -Syuq --noconfirm
|
|
|
|
|
|
|
|
# Install packages
|
2023-12-24 03:37:57 +00:00
|
|
|
RUN aur-install sudo git git-lfs python python-pip python-pipx xz gnu-free-fonts vim ngspice gedit jupyter-notebook xterm wget
|
2023-09-24 18:26:43 +00:00
|
|
|
ENV TERM=xterm EDITOR=gedit
|
2023-09-13 10:52:33 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Install volare
|
|
|
|
USER designer
|
|
|
|
ENV PATH="${PATH}:/home/designer/.local/bin"
|
|
|
|
RUN pipx install volare
|
|
|
|
WORKDIR /home/designer
|
|
|
|
|
|
|
|
# PDK Environment variables
|
|
|
|
ENV PDK_ROOT /home/designer/.volare
|
|
|
|
ENV USER designer
|
|
|
|
|
|
|
|
# Add scripts
|
|
|
|
RUN mkdir -p .scripts
|
2023-09-21 05:15:01 +00:00
|
|
|
COPY --chown=designer:designer --chmod=755 scripts/* /home/designer/.scripts
|
2023-09-13 10:52:33 +00:00
|
|
|
ENV PATH="/home/designer/.scripts:${PATH}"
|
|
|
|
|
|
|
|
# Initialize the enviroment keeping container alive
|
2023-09-19 22:20:44 +00:00
|
|
|
CMD ["sleep", "infinity"]
|