Sign inSign up

srampr/ubuntu_xyce

By srampr

•Updated almost 2 years ago

Xyce simulator built on Ubuntu 22.04

Image
0

1.0K

srampr/ubuntu_xyce repository overview

The following instructions help set up a personalized image and run containers for running Xyce:

⁠Building a personalized image

Create a file named dockerfile with the following contents:

FROM srampr/ubuntu_xyce:latest AS env
ARG UID=0
ARG GID=0
RUN if [ "$GID" -ne "0" ] ; then echo $GID && groupadd -g $GID -o user; fi
RUN if [ "$UID" -ne "0" ] ; then useradd -m -u $UID -g $GID -p user -o -s /bin/bash user ; fi
RUN chown -R user /work 
RUN echo "user	ALL=(ALL:ALL) ALL" >> /etc/sudoers
USER user
WORKDIR /work

To create a docker image that generates files with proper file permissions on Linux, run:

docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t xyce_user .
⁠Mounting host directory inside container

For example, if you want to mount /home/user/my_work inside the container and run Xyce use:

docker run -v /home/user/my_work:/work -it xyce_user Xyce <your_spice_circuit.cir>

Tag summary

Content type

Image

Digest

sha256:2b7513057…

Size

820.6 MB

Last updated

almost 2 years ago

docker pull srampr/ubuntu_xyce