File: inspector_container.def

package info (click to toggle)
apptainer 1.4.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,780 kB
  • sloc: sh: 3,329; ansic: 1,706; awk: 414; python: 103; makefile: 54
file content (57 lines) | stat: -rw-r--r-- 977 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
bootstrap: oras
from: ghcr.io/apptainer/alpine:3.15.0

%help
This is a e2e test container used for testing the 'inspect'
command. This container "inspector_container.sif" should be placed
in the "e2e/testdata" directory of Apptainer.

%labels
MAINTAINER "WestleyK <westley@sylabs.io>"
e2e awesome
E2E AWESOME
hi "hello world"
HI "HELLO WORLD"

%post
echo "export hello=\"world\"" >> $APPTAINER_ENVIRONMENT
# add labels from post section
k=first; echo "$k.build.labels  $k" >> $APPTAINER_LABELS
k=second; echo "$k.build.labels $k" >> $APPTAINER_LABELS

%test
ls /
test -d /
test -d /etc

%environment
export test="testing"
export e2e="e2e testing"

%runscript
cat /.singularity.d/runscript.help

%startscript
exec "$@"

%apprun hello
echo "hello"

%appstart hello
exec "$@"

%apphelp hello
This is the help for hello!

%applabels hello
HELLOTHISIS hello

%appenv hello
HELLOTHISIS=hello
export HELLOTHISIS

%apptest hello
echo "THIS IS A HELLO TEST"

%apprun world
echo "world"