Closed MilesCranmer closed 2 years ago
Can also use caching of the docker image:
@foolnotion I also merged the commits from your PR on @yoshitomo-matsubara's repository. It looks like your changes cavalab/srbench:master supersede those changes? But let me know if anything looks off here.
Actually maybe the NVIDIA parts should be left in. @yoshitomo-matsubara do you know if they affect the build for systems not using GPUs?
@MilesCranmer I think I tested the original docker file with the NVIDIA parts on a local machine (with no GPUs), so it won't affect the build for those with no GPUs
No but it looks like changing bash $install_file
to $install_file
in install.sh
didn't work as intended and results in the above error. I was trying to keep the same shell env when running the install files since it complains it can't find conda otherwise.
Argh, I really can't seem get this working after many hours. The conda install runs fine, but after this, the docker container to forget that I've run conda init bash
and keeps complaining about this. @yoshitomo-matsubara or @foolnotion want to have a stab?
Argh, I really can't seem get this working after many hours. The conda install runs fine, but after this, the docker container to forget that I've run
conda init bash
and keeps complaining about this. @yoshitomo-matsubara or @foolnotion want to have a stab?
I should be able to make a pass in the next couple weeks...
Next week I will have a look as well.
The conda install runs fine, but after this, the docker container to forget that I've run
conda init bash
and keeps complaining about this.
The fix seems to be to specify the environment as a precursor to SHELL as
SHELL ["conda", "run", "-n", "srbench", "/bin/bash", "-c"]
I'm able to build the Docker Image fine, but I've moved on to attempting to use the image (and cache it) for the tests on the cavalab:docker-fix branch.
@MilesCranmer can you check the PySR build on docker here: https://github.com/cavalab/srbench/runs/5254753478?check_suite_focus=true#step:6:1766
I've removed the conda dependency everywhere and parallized the docker build; it looks like PySR / Julia is trying to install or use conda in some way.
moved to PR #75
This PR is #59 but with a few extra changes:
linux/amd64
only, which enables this docker container to be built on any system whatsoever. (necessary since many of the conda packages are architecture-specific).conda
so that theinstall.sh
files can proceed without modification.mamba
andconda
use the same structure so they can both be used.The CI right now just tests if the container is buildable, but does not run the tests within the docker yet. Those can be added later.