Merge pull request #4347 from hashicorp/feature/ui-build-tweaks

Build - Tiny ui build additions
This commit is contained in:
John Cowen 2018-07-12 08:58:29 +01:00 committed by GitHub
commit c13e0dbe8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ function build_ui {
then
status "Copying the source from '${ui_dir}' to /consul-src within the container"
(
tar -c $(ls | grep -v "^(node_modules\|dist)") | docker cp - ${container_id}:/consul-src &&
tar -c $(ls -A | grep -v "^(node_modules\|dist\|tmp)") | docker cp - ${container_id}:/consul-src &&
status "Running build in container" && docker start -i ${container_id} &&
rm -rf ${1}/ui-v2/dist &&
status "Copying back artifacts" && docker cp ${container_id}:/consul-src/dist ${1}/ui-v2/dist