Singularity

Singularity is a container platform focused on supporting “Mobility of Compute” . Singularity can instantly virtualize the operating system, without having root access, and allow you to run that application in its native environment .

Install:
# Install dependencies
$ sudo apt-get update && \
    sudo apt-get install \
    python \
    dh-autoreconf \
    build-essential


$ VERSION=2.5.1
$ wget https://github.com/singularityware/singularity/releases/download/$VERSION/singularity-$VERSION.tar.gz
$ tar xvf singularity-$VERSION.tar.gz
$ cd singularity-$VERSION
$ ./configure --prefix=/usr/local
$ make
$ sudo make install
Usage Workflow
build
$ singularity build lolcow.simg shub://GodloveD/lolcow
$ singularity build lolcow.simg docker://godlovedc/lolcow
exec
# Please note user
$ singularity exec lolcow.simg whoami
wongyt

$ sudo singularity exec lolcow.simg whoami
root
Singularity recipe files
$ vim Singularity 
Bootstrap: docker
From: ubuntu:16.04

%post
    apt-get -y update
    apt-get -y install fortune cowsay lolcat

%environment
    export LC_ALL=C
    export PATH=/usr/games:$PATH

%runscript
    fortune | cowsay | lolcat


$ sudo singularity build  Singularity

Reference

results matching ""

    No results matching ""