Skip to content

Commit a38126b

Browse files
committed
adding missing example for v2.0 (ping)
Signed-off-by: vsoch <[email protected]>
1 parent a81ec7f commit a38126b

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

docs/README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,39 @@ instances:
6060
- 80:80
6161
```
6262

63-
and here is a version 2.0 spec that shows adding networking and exec options:
63+
and [here](https://github.com/singularityhub/singularity-compose-examples/tree/4241ea8b4e068d93859acb7d2b924702815af0ce/v2.0/ping)
64+
is a version 2.0 spec that shows adding networking and exec options:
6465

6566
```yaml
67+
version: "2.0"
68+
instances:
69+
alp1:
70+
build:
71+
context: ./alp1
72+
options:
73+
- fakeroot
74+
ports:
75+
- "1025:1025"
76+
start:
77+
options:
78+
- fakeroot
79+
exec:
80+
options:
81+
- "env-file=myvars.env"
82+
command: printenv SUPERHERO
83+
alp2:
84+
build:
85+
context: ./alp2
86+
options:
87+
- fakeroot
88+
ports:
89+
- "1026:1026"
90+
start:
91+
options:
92+
- fakeroot
93+
run: []
94+
depends_on:
95+
- alp1
6696
```
6797

6898
If you are familiar with [docker-compose](https://docs.docker.com/compose/)

0 commit comments

Comments
 (0)