commit 370 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/sh

help()
{
cat <<EOF
Usage:	$0 CONTAINER

Commit a development container (eg. dev-rails). This is useful when updating
the bundler (Gemfile) or bower (bower.json) config.

This will commit <CONTAINER> into image allgo_<CONTAINER> (to be used with
docker-compose).
EOF
exit 1
}

[ $# -eq 1 ] || help

CTR="$1"

set -x
docker commit -- "$CTR" "allgo_$CTR:latest"