--
You received this message because you are subscribed to the Google Groups "xyce-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xyce-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xyce-users/b1d49294-dc3d-4ab5-b8e9-f73d276926b7%40googlegroups.com.
I install Xyce using a simple Dockerfile using docker. Copy the following and save it as Dockerfile
. Feel free to improve it.
It will install also Python 3.8 as I use it pre/post-processing and to run Xyce simulations. When I will have the wrapper ready for publication I am planning to release it but it is not ready yet. If you don’t need it, remove the parts related to python.
Update ARG Xyce="ADD HERE THE VERSION"
with the last part of the link. I have not added the link as the user should register before download and I don’t know it is ok to add it as an hardlink.
Update also ENV PATH="${PATH}:/usr/local/Xyce-Release-6.12.0-OPENSOURCE/bin"
FROM centos:latest
ARG Xyce="ADD HERE THE VERSION"
RUN \
yum update -y &&\
yum install -y wget &&\
wget "https://xyce.sandia.gov/downloads/_assets/documents/Binaries/${Xyce}" &&\
yum install -y ${Xyce} &&\
rm -f ${Xyce} &&\
yum install -y gcc gcc-c++ openssl-devel bzip2-devel libffi-devel freetype* make git &&\
cd /usr/src &&\
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz &&\
tar xzf Python-3.8.0.tgz &&\
cd Python-3.8.0 &&\
./configure --enable-optimizations &&\
make altinstall &&\
rm -f /usr/src/Python-3.8.0.tgz &&\
pip3.8 install -i https://pypi.org/simple \
"git+https://github.com/vMeijin/pySmithPlot.git#egg=pysmithplot" \
cycler kiwisolver matplotlib numpy pyparsing python-dateutil scipy six &&\
yum clean all -y &&\
mkdir sim
ENV PATH="${PATH}:/usr/local/Xyce-Release-6.12.0-OPENSOURCE/bin"
VOLUME ["/tmp", "/sim"]
WORKDIR /sim
Build the docker using
docker build -t xyce .
in the same folder.
Run it from the same folder as your netlist.net
docker run --rm -t -v "/tmp/spyce:/tmp" -v "$(pwd):/sim" -u $(id -u ${USER}):$(id -g ${USER}) xyce Xyce netlist.net
# The files in output have the same user and group of the local user