Skip to content

Instantly share code, notes, and snippets.

@jamesmoriarty
Last active December 4, 2017 03:05
Show Gist options
  • Save jamesmoriarty/8f8c250ba58fa07ee1f060ff9b025578 to your computer and use it in GitHub Desktop.
Save jamesmoriarty/8f8c250ba58fa07ee1f060ff9b025578 to your computer and use it in GitHub Desktop.
docker-compose build \w --build-args
REGEX='^ [^ :]\{1,\}'
PROXY=''
grep -o -i $REGEX docker-compose.yml \
| xargs \
docker-compose build \
--build-arg http_proxy=$PROXY \
--build-arg NPM_ARGS='--proxy http://$PROXY --https-proxy http://$PROXY --strict-ssl false' \
$@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment