Open jlapeyre opened 2 years ago
I have added modified Dockerfiles to the main branch, and to a release ae78f22 . Currently you have to run a script to build the docker images and check the log files for errors (usually pretty obvious). But, I think this will help quite a bit controlling regressions.
@garrison Do you have ideas about how to do CI or local test scripts using Docker ? Do you make a bunch of containers and run them in a shell script? (I am trying this here.) How do you check output? Simplest would be to look at return code from building the container. Maybe running a container can print to stdout, and you collect that ?
Here are some
Dockerfile
s where I am moving in this direction.qiskit_alt
repo ? For local testing, at least, this seems like a good idea. I don't know if they should be integrated with pytest or not. I guess not/usr/bin/julia
.~/.juliaup/bin/julia
.~/.local
) just by usingpip
, but with no virtual environmentpython -m venv ./venv
.qiskit_alt
detects this and does awarnings.warn
and switches tojuliacall
. It would be nice to test this.The containers so far are following these ideas for containers as layers (I think "layers" is not the correct term here)
/home/quser
./home/quser/venv
.qiskit-terra
,numpy
etc.qiskit_alt
. Usepip install -e .
Other layers that install conda insteadqiskit_alt.project.ensure_init(calljulia="pyjulia", depot=False, install_julia=True)
, etc. Currently, these layers do an automatically installation of julia. But, this is costly to do every time. So...RUN source ./venv/bin/activate && echo "y" | jill install
to install julia in a layer.