colinsauze/torch_singularity:latest

$ singularity pull shub://colinsauze/torch_singularity:latest

Singularity Recipe

Bootstrap:docker
From:ubuntu:18.04

%help

%labels
    MAINTAINER Colin Sauze

%environment
    #define environment variables here
    
%post  

    apt-get -y update
    apt-get -y upgrade

    #essential utilities
    apt-get -y install git sudo wget build-essential

    cd /opt

    #get torch from source
    git clone https://github.com/torch/distro.git torch --recursive
    cd torch

    #fix broken package being installed by torch
    sed -i 's/sudo apt-get install -y python-software-properties/sudo apt-get install -y software-properties-common/' install-deps

    #install torch
    bash install-deps;
    ./install.sh

    #install the optnet package
    /opt/torch/install/bin/luarocks install optnet
    
%runscript
    #set locale so multiqc doesn't complain
    export LANG=en_US.UTF-8
    
    #running stuff
    /opt/torch/install/bin/th "$@"

Collection


View on Datalad

Metrics

key value
id /containers/colinsauze-torch_singularity-latest
collection name colinsauze/torch_singularity
branch master
tag latest
commit 793ab8e7c584582260dc1740ea13874f3557b2e2
version (container hash) 78f86bf6c4f1d59b14a940ae10741a7a
build date 2019-03-25T23:16:31.036Z
size (MB) 1232
size (bytes) 422719519
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.