singularity.def 1.28 KB
Newer Older
Eivinas Butkus's avatar
Eivinas Butkus committed
1 2 3 4
Bootstrap: library
From: airl_lab/default/airl_env:tensorflow

%labels Author eivinas.butkus18@imperial.ac.uk
Eivinas's avatar
Eivinas committed
5
    # adapted from Antoine Cully
Eivinas Butkus's avatar
Eivinas Butkus committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
    Version v0.0.1

%files
    ./resources/setup.sh /git/sferes2
    ./resources/install.sh /git/sferes2

%post
   export LD_LIBRARY_PATH="/workspace/lib:$LD_LIBRARY_PATH"
   cd /git/sferes2/exp
   git clone https://gitlab.doc.ic.ac.uk/dr-techniques-for-automatic-bds/beta_vae
   cd /git/sferes2
   ./install.sh       # installs osg, dart, robot_dart
   cd /git/sferes2

   # more code can come here
   # ...
   # ...
   #====================================================================================================
   exit 0 #NOTFORFINAL - the lines below this "exit" will be executed only when building the final image
   #====================================================================================================
   ./setup.sh

%runscript
    CURPATH=$(pwd)
    if [ ! -d ./results ]; then
        mkdir results
    fi
    cd /git/sferes2/
    # running the experiment (the -d option allows to define the directory where the results should be stored
    PATHNAME=$(date +%Y-%m-%d_%H_%M_%S)_$$
    build/exp/beta_vae/hexapod_beta_vae -d $CURPATH/results/hexapod_beta_vae_EDUF_10k_$PATHNAME


%help
    BetaVAE version of the Hexapod Experiment.