Singularity recipe files for ApsimX, the next generation of the Agricultural Production Systems sIMulator (APSIM)
This container downloads the ApsimX deb
file built by the BOB Build Service at CSIRO and installs it on a Ubuntu:Bionic container.
There are two useful endpoints from the Build Service:
- Get Latest Version: shows the full version number of the latest release
- Get URL of Latest Version: shows the download URL for the latest version of the specified OS
ApsimSetup*.deb
files are named using the build.issueNumber instead of the full version number, so we must hardcode the URLs inside the recipe files, while using the full version number for the recipe file names.
To facilitate running the container, a /usr/local/bin/apsimmodels
file is created as the entrypoint using /usr/local/bin/apsim
as a template.
- ApsimX apparently needs
/etc/localtime
to run so we have to installtzdata
as a dependency. We configure our local timezone, but this can be overridden at run time by exporting theTZ
environment variable.