Xyce simulator built on Ubuntu 22.04
1.0K
The following instructions help set up a personalized image and run containers for running Xyce:
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 .
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>
Content type
Image
Digest
sha256:2b7513057…
Size
820.6 MB
Last updated
almost 2 years ago
docker pull srampr/ubuntu_xyce