Adds support for a memory flag to docker-compose build.

Signed-off-by: Samantha Miller <samantha.a.miller123@gmail.com>
This commit is contained in:
Samantha Miller 2017-11-24 22:53:48 -06:00
parent d48002a09d
commit a6cdd62726
9 changed files with 29 additions and 4 deletions

View file

@ -120,7 +120,7 @@ _docker_compose_build() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--build-arg --force-rm --help --no-cache --pull" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--build-arg --force-rm --help --memory --no-cache --pull" -- "$cur" ) )
;;
*)
__docker_compose_services_from_build

View file

@ -196,6 +196,7 @@ __docker-compose_subcommand() {
$opts_help \
"*--build-arg=[Set build-time variables for one service.]:<varname>=<value>: " \
'--force-rm[Always remove intermediate containers.]' \
'--memory[Memory limit for the build container.]' \
'--no-cache[Do not use cache when building the image.]' \
'--pull[Always attempt to pull a newer version of the image.]' \
'*:services:__docker-compose_services_from_build' && ret=0