File: Singularity

package info (click to toggle)
singularity-container 4.1.5%2Bds4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,876 kB
  • sloc: asm: 14,840; sh: 3,190; ansic: 1,751; awk: 414; makefile: 413; python: 99
file content (20 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
BootStrap: busybox
MirrorURL: https://www.busybox.net/downloads/binaries/1.26.2-defconfig-multiarch/busybox-x86_64

%post
    echo "Hello from inside the container"

%runscript
    echo "Running command: $*"
    exec "$@"

%appenv testapp
    TESTAPP=testapp
    export TESTAPP

%appinstall testapp
    echo 'echo $TESTAPP' > $SINGULARITY_APPROOT/bin/testapp.sh
    chmod 0755 $SINGULARITY_APPROOT/bin/testapp.sh

%apprun testapp
    $TESTAPP.sh