Change to LF endings
This commit is contained in:
parent
1347cdb102
commit
86955df199
@ -1,34 +1,34 @@
|
|||||||
# OSIC Stacks - osicstack-base-arch
|
# OSIC Stacks - osicstack-base-arch
|
||||||
# Base image for OSIC Stacks
|
# Base image for OSIC Stacks
|
||||||
FROM greyltc/archlinux-aur:paru
|
FROM greyltc/archlinux-aur:paru
|
||||||
|
|
||||||
# Update packages
|
# Update packages
|
||||||
RUN pacman -Syuq --noconfirm
|
RUN pacman -Syuq --noconfirm
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN aur-install sudo git python python-pip python-pipx xz gnu-free-fonts vim ngspice gedit
|
RUN aur-install sudo git python python-pip python-pipx xz gnu-free-fonts vim ngspice gedit jupyter-notebook
|
||||||
|
|
||||||
# Clean cache
|
# Clean cache
|
||||||
RUN pacman -Scc
|
RUN pacman -Scc
|
||||||
|
|
||||||
# Add main user
|
# Add main user
|
||||||
RUN useradd -m designer
|
RUN useradd -m designer
|
||||||
RUN echo "designer ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/designer
|
RUN echo "designer ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/designer
|
||||||
|
|
||||||
# Install volare
|
# Install volare
|
||||||
USER designer
|
USER designer
|
||||||
ENV PATH="${PATH}:/home/designer/.local/bin"
|
ENV PATH="${PATH}:/home/designer/.local/bin"
|
||||||
RUN pipx install volare
|
RUN pipx install volare
|
||||||
WORKDIR /home/designer
|
WORKDIR /home/designer
|
||||||
|
|
||||||
# PDK Environment variables
|
# PDK Environment variables
|
||||||
ENV PDK_ROOT /home/designer/.volare
|
ENV PDK_ROOT /home/designer/.volare
|
||||||
ENV USER designer
|
ENV USER designer
|
||||||
|
|
||||||
# Add scripts
|
# Add scripts
|
||||||
RUN mkdir -p .scripts
|
RUN mkdir -p .scripts
|
||||||
COPY --chown=designer:designer --chmod=755 scripts/klayout /home/designer/.scripts
|
COPY --chown=designer:designer --chmod=755 scripts/klayout /home/designer/.scripts
|
||||||
ENV PATH="/home/designer/.scripts:${PATH}"
|
ENV PATH="/home/designer/.scripts:${PATH}"
|
||||||
|
|
||||||
# Initialize the enviroment keeping container alive
|
# Initialize the enviroment keeping container alive
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export KLAYOUT_HOME=$PDK_ROOT/$PDK/libs.tech/klayout
|
export KLAYOUT_HOME=$PDK_ROOT/$PDK/libs.tech/klayout
|
||||||
if [[ $PDK = gf180mcu* ]]; then
|
if [[ $PDK = gf180mcu* ]]; then
|
||||||
if [[ ! -d $KLAYOUT_HOME/pymacros/cells ]]; then
|
if [[ ! -d $KLAYOUT_HOME/pymacros/cells ]]; then
|
||||||
mv $KLAYOUT_HOME/pymacros/* $KLAYOUT_HOME/pymacros/cells | mkdir $KLAYOUT_HOME/pymacros/cells
|
mv $KLAYOUT_HOME/pymacros/* $KLAYOUT_HOME/pymacros/cells | mkdir $KLAYOUT_HOME/pymacros/cells
|
||||||
fi
|
fi
|
||||||
if [[ ! -f $KLAYOUT_HOME/pymacros/gf180mcu.lym ]]; then
|
if [[ ! -f $KLAYOUT_HOME/pymacros/gf180mcu.lym ]]; then
|
||||||
mv $KLAYOUT_HOME/tech/gf180mcu.lym $KLAYOUT_HOME/pymacros
|
mv $KLAYOUT_HOME/tech/gf180mcu.lym $KLAYOUT_HOME/pymacros
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
/bin/klayout $@
|
/bin/klayout $@
|
||||||
|
Loading…
Reference in New Issue
Block a user