mirror of
https://github.com/clearlinux/docs.git
synced 2026-06-25 23:15:50 +00:00
Add simple script to auto-update the hello-world description
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
docker pull hello-world &> /dev/null
|
||||
|
||||
exec > "$(dirname "$(readlink -f "$BASH_SOURCE")")/README-content.md"
|
||||
|
||||
echo '# Example output'
|
||||
echo
|
||||
|
||||
{
|
||||
echo '$ docker run hello-world'
|
||||
docker run --rm hello-world
|
||||
echo
|
||||
echo '$ docker images hello-world'
|
||||
docker images hello-world | awk -F' +' '{ print $1"\t"$2"\t"$3"\t"$5 }' | column -t -s$'\t'
|
||||
} | sed 's/^/ /'
|
||||
Reference in New Issue
Block a user