# some comment before header
Bootstrap: docker   # some comment on header line
From: <registry>/<namespace>/<container>:<tag>@<digest>
IncludeCmd: yes

# Some dummy comment 1
%help
Hello Help!
# # double Hashtag comment
%setup
    touch ${SINGULARITY_ROOTFS}/mock.txt
    touch mock.txt

# Some dummy comment 2

%files
mock1.txt
mock2.txt /opt

# Some dummy comment 3
%labels
Maintainer Eduardo
Version v1.0

%environment
    VADER=badguy
    LUKE=goodguy
    SOLO=someguy # comment 4
    export VADER LUKE SOLO



%post
    echo 'this is a command so long that the user had to' \
    'add a new line'
    echo 'export GOPATH=$HOME/go' >> $SINGULARITY_ENVIRONMENT

%runscript
    echo "Mock!"
    echo "Arguments received: $*" # This is a very long comment
    exec echo "$@"

%appinstall foo

    echo "INSTALLING FOO"
    touch filefoo.exec

%appinstall bar

    echo "INSTALLING BAR"
    touch filebar.exec

%apphelp foo
    This is the help for foo!

%applabels foo
    HELLOTHISIS foo

%applabels bar
    HELLOTHISIS bar

%appenv foo
    HELLOTHISIS=foo
    export HELLOTHISIS

%apprun foo
    echo "RUNNING FOO"
