powerPlant/apsimx-srf:2019.01.30.3436

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

Singularity Recipe

Bootstrap: docker
From: ubuntu:bionic

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

%setup
  curl --silent -o ${SINGULARITY_ROOTFS}/tmp/ApsimSetup.deb http://www.apsim.info/ApsimXFiles/ApsimSetup3436.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 /tmp/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 /tmp/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-2019.01.30.3436
collection name powerPlant/apsimx-srf
branch master
tag 2019.01.30.3436
commit 6e59e6919b1cfa1140d84f94f78cf8b530d02ae3
version (container hash) 8ad9b80b2048a8d68ab238a2620de972
build date 2020-10-22T02:42:04.375Z
size (MB) 940
size (bytes) 330739743
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.