initial pass at container-level scaling

This commit is contained in:
Michael Hobbs
2015-04-17 15:23:59 -07:00
parent 4d7671dee3
commit 33f872183e
8 changed files with 180 additions and 61 deletions

View File

@@ -135,3 +135,11 @@ parse_args() {
done
return 0
}
copy_from_image() {
local APP="$1"; local IMAGE="dokku/$APP"; local SRC_FILE="$2"; local DST_DIR="$3"; verify_app_name $APP
CID=$(docker run -d $IMAGE bash)
docker cp "$CID:$SRC_FILE" "$DST_DIR"
docker rm -f "$CID"
}