Fix volare user and working directory
This commit is contained in:
parent
6f91d4ea87
commit
ce06807f84
@ -8,10 +8,6 @@ RUN pacman -Syuq --noconfirm
|
|||||||
# Install packages
|
# Install packages
|
||||||
RUN aur-install sudo git python python-pipx xz gnu-free-fonts
|
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
|
# Clean cache
|
||||||
RUN pacman -Scc
|
RUN pacman -Scc
|
||||||
|
|
||||||
@ -19,5 +15,11 @@ RUN pacman -Scc
|
|||||||
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
|
||||||
|
USER designer
|
||||||
|
ENV PATH="${PATH}:/home/designer/.local/bin"
|
||||||
|
RUN pipx install volare
|
||||||
|
WORKDIR /home/designer
|
||||||
|
|
||||||
# Initialize the enviroment keeping container alive
|
# Initialize the enviroment keeping container alive
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
@ -2,13 +2,14 @@
|
|||||||
# Dev enviroment for analog circuits development using xschem and klayout.
|
# Dev enviroment for analog circuits development using xschem and klayout.
|
||||||
FROM osicstack-base-arch
|
FROM osicstack-base-arch
|
||||||
|
|
||||||
|
# Update packages
|
||||||
|
RUN sudo pacman -Syuq --noconfirm
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN aur-install xschem klayout
|
RUN sudo aur-install xschem klayout
|
||||||
|
|
||||||
# Clean cache
|
# Clean cache
|
||||||
RUN pacman -Scc
|
RUN sudo pacman -Scc
|
||||||
|
|
||||||
USER designer
|
|
||||||
|
|
||||||
# Initialize the enviroment keeping container alive
|
# Initialize the enviroment keeping container alive
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
Loading…
Reference in New Issue
Block a user