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
4
docs/cookbook/container/default.rundocker.do
Normal file
4
docs/cookbook/container/default.rundocker.do
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
redo-ifchange "$2.load" "$2.list.sha256"
|
||||
./need.sh docker
|
||||
read container_id <$2.list.sha256
|
||||
docker run "$container_id"
|
||||
Loading…
Add table
Add a link
Reference in a new issue