Update example scripts to use the new CLI syntax

Update the scripts in examples/ to adapt to changes in the CLI.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #48
Approved by: rhatdan
This commit is contained in:
Nalin Dahyabhai
2017-03-28 11:23:43 -04:00
committed by Atomic Bot
parent b8214c4cff
commit 75c13530ac
2 changed files with 8 additions and 8 deletions

View File

@@ -9,8 +9,8 @@ ocic image list
read
: " Create a working container, and capture its name "
read
echo '[container1=`buildah from --image ${1:-ubuntu}`]'
container1=`buildah from --image ${1:-ubuntu}`
echo '[container1=`buildah from ${1:-ubuntu}`]'
container1=`buildah from ${1:-ubuntu}`
read
: " Mount that working container, and capture the mountpoint "
read
@@ -24,7 +24,7 @@ echo yay > $mountpoint1/file-in-root
read
: " Produce an image from the container "
read
buildah commit "$container1" --output containers-storage:${2:-first-new-image}
buildah commit "$container1" containers-storage:${2:-first-new-image}
read
: " Verify that our new image is there "
read
@@ -41,8 +41,8 @@ systemctl stop ocid
read
: " You know what? Go ahead and use that image we just created, and capture its name "
read
echo '[container2=`buildah from --image=${2:-first-new-image}`]'
container2=`buildah from --image=${2:-first-new-image}`
echo '[container2=`buildah from ${2:-first-new-image}`]'
container2=`buildah from ${2:-first-new-image}`
read
: " Mount that new working container, and capture the mountpoint "
read
@@ -60,7 +60,7 @@ echo yay > $mountpoint2/another-file-in-root
read
: " Produce an image from the new container"
read
buildah commit "$container2" --output containers-storage:${3:-second-new-image}
buildah commit "$container2" containers-storage:${3:-second-new-image}
read
: " Unmount our new working container and delete it "
read

View File

@@ -13,8 +13,8 @@ ocic image list
read
: " Create a working container, and capture its name "
read
echo '[container1=`buildah from --pull --image ${1:-alpine}`]'
container1=`buildah from --pull --image ${1:-alpine}`
echo '[container1=`buildah from ${1:-alpine}`]'
container1=`buildah from ${1:-alpine}`
read
: " Mount that working container, and capture the mountpoint "
read