github.com/apptainer/singularity@v3.1.1+incompatible/cmd/singularity/testdata/deffile.tmpl (about)

     1  {{- if .Bootstrap}}
     2  Bootstrap: {{.Bootstrap}}
     3  {{- end}}
     4  
     5  {{- if .From}}
     6  From: {{.From}}
     7  {{- end}}
     8  
     9  {{- if .Registry}}
    10  Registry: {{.Registry}}
    11  {{- end}}
    12  
    13  {{- if .Namespace}}
    14  Namespace: {{.Namespace}}
    15  {{- end}}
    16  
    17  
    18  
    19  
    20  {{- if .Help}}
    21  %help
    22  {{- end}}
    23  {{- range $l := .Help}}
    24      {{$l}}
    25  {{- end}}
    26  
    27  {{- if .Env}}
    28  %environment
    29  {{- end}}
    30  {{- range $l := .Env}}
    31      export {{$l}}
    32  {{- end}}
    33  
    34  {{- if .Labels}}
    35  %labels
    36  {{- end}}
    37  {{- range $k, $v := .Labels}}
    38      {{$k}} {{$v}}
    39  {{- end}}
    40  
    41  {{- if .Files}}
    42  %files
    43  {{- end}}
    44  {{- range $f := .Files}}
    45      {{$f.Src}} {{$f.Dst}}
    46  {{- end}}
    47  
    48  {{- if .Pre}}
    49  %pre
    50  {{- end}}
    51  {{- range $l := .Pre}}
    52      touch {{$l}}
    53  {{- end}}
    54  
    55  {{- if .Setup}}
    56  %setup
    57  {{- end}}
    58  {{- range $l := .Setup}}
    59      touch {{$l}}
    60  {{- end}}
    61  
    62  {{- if .Post}}
    63  %post
    64  {{- end}}
    65  {{- range $l := .Post}}
    66      touch {{$l}}
    67  {{- end}}
    68  
    69  {{- if .RunScript}}
    70  %runscript
    71  {{- end}}
    72  {{- range $l := .RunScript}}
    73      {{$l}}
    74  {{- end}}
    75  
    76  {{- if .Test}}
    77  %test
    78  {{- end}}
    79  {{- range $l := .Test}}
    80      {{$l}}
    81  {{- end}}
    82  
    83  {{- if .StartScript}}
    84  %startscript
    85  {{- end}}
    86  {{- range $l := .StartScript}}
    87      {{$l}}
    88  {{- end}}
    89  
    90  
    91  
    92  
    93  
    94  
    95  {{- range $app := .Apps}}
    96  
    97  {{- if $app.Help}}
    98  %apphelp {{$app.Name}}
    99  {{- end}}
   100  {{- range $l := $app.Help}}
   101      {{$l}}
   102  {{- end}}
   103  
   104  {{- if $app.Env}}
   105  %appenv {{$app.Name}}
   106  {{- end}}
   107  {{- range $l := $app.Env}}
   108      export {{$l}}
   109  {{- end}}
   110  
   111  {{- if $app.Labels}}
   112  %applabels {{$app.Name}}
   113  {{- end}}
   114  {{- range $k, $v := $app.Labels}}
   115      {{$k}} {{$v}}
   116  {{- end}}
   117  
   118  {{- if $app.Files}}
   119  %appfiles {{$app.Name}}
   120  {{- end}}
   121  {{- range $f := $app.Files}}
   122      {{$f.Src}} {{$f.Dst}}
   123  {{- end}}
   124  
   125  {{- if $app.Install}}
   126  %appinstall {{$app.Name}}
   127  {{- end}}
   128  {{- range $l := $app.Install}}
   129      touch {{$l}}
   130  {{- end}}
   131  
   132  {{- if $app.Run}}
   133  %apprun {{$app.Name}}
   134  {{- end}}
   135  {{- range $l := $app.Run}}
   136      {{$l}}
   137  {{- end}}
   138  
   139  {{- if $app.Test}}
   140  %apptest {{$app.Name}}
   141  {{- end}}
   142  {{- range $l := $app.Test}}
   143      {{$l}}
   144  {{- end}}
   145  
   146  {{- end}}