powerPlant/apsimx-srf:2020.11.27.5887

$ singularity pull shub://powerPlant/apsimx-srf:2020.11.27.5887

Singularity Recipe

Bootstrap: docker
From: ubuntu:bionic

%labels
Maintainer eric.burgueno@plantandfood.co.nz
Version 2020.11.27.5887

%setup
  curl --silent -o ${SINGULARITY_ROOTFS}/ApsimSetup.deb http://apsimdev.apsim.info/ApsimXFiles/ApsimSetup5887.deb

%post
  ## Configure timezone
  apt-get update
  apt-get -y install tzdata
  ln -fs /usr/share/zoneinfo/Pacific/Auckland /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
  
  ## Install from deb file
  apt -y install /ApsimSetup.deb
  
  ## Create entrypoint
  cp -a /usr/local/bin/apsim /usr/local/bin/apsimmodels
  sed -i 's/ApsimNG/Models/' /usr/local/bin/apsimmodels

  ## Cleanup
  rm -rf /ApsimSetup.deb
  apt-get -y clean all
  apt-get -y autoremove --purge

%runscript
  exec /usr/local/bin/apsimmodels "$@"

Collection


View on Datalad

Metrics

key value
id /containers/powerPlant-apsimx-srf-2020.11.27.5887
collection name powerPlant/apsimx-srf
branch master
tag 2020.11.27.5887
commit 1ca931ac4522018c859ff417f84c660d3a0d8515
version (container hash) e3bd867afd43593d5d7384890bd45205e69f47987fc311dfb31996b2abbe63fb
build date 2020-11-30T00:23:14.010Z
size (MB) 362.3203125
size (bytes) 379920384
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.