cookbook/container: example of building+running docker containers.
This got... long... and complicated. But I think it's a really good demonstration of getting redo to do complicated things elegantly. At least, I hope it is.
This commit is contained in:
parent
01497f55e9
commit
3923a7d3f8
38 changed files with 1375 additions and 7 deletions
9
docs/cookbook/container/need.sh
Executable file
9
docs/cookbook/container/need.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
fail=0
|
||||
for d in "$@"; do
|
||||
if ! type "$d" >/dev/null 2>/dev/null; then
|
||||
echo " -- missing tool: $d" >&2
|
||||
fail=1
|
||||
fi
|
||||
done
|
||||
exit "$fail"
|
||||
Loading…
Add table
Add a link
Reference in a new issue