Skip to content

Commit 98b722f

Browse files
committed
fixing bug with environment variable spec
1 parent 6f2a78c commit 98b722f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pages/docs/user-docs/docs-environment-metadata.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Bootstrap:docker
1818
From: ubuntu:latest
1919

2020
%environment
21-
VARIABLE_NAME VARIABLE_VALUE
21+
VARIABLE_NAME=VARIABLE_VALUE
2222
```
2323

2424
Forget something, or need a variable defined at runtime? You can set any variable you want inside the container by prefixing it with "SINGULARITYENV_". It will be transposed automatically and the prefix will be stripped. For example, let's say we want to set the variable `HELLO` to have value `WORLD`. We can do that as follows:
@@ -62,7 +62,12 @@ Your container stores metadata about it's build, along with Docker labels. You c
6262

6363
```bash
6464
singularity exec centos7.img cat /.singularity.d/labels.json
65-
{"name": "CentOS Base Image", "build-date": "20170315", "vendor": "CentOS", "license": "GPLv2"}
65+
{ "name":
66+
"CentOS Base Image",
67+
"build-date": "20170315",
68+
"vendor": "CentOS",
69+
"license": "GPLv2"
70+
}
6671
```
6772

6873
You can add custom labels to your container in a bootstrap file:

0 commit comments

Comments
 (0)