From dbf2a84ff41b1d70163719778d26bdd3a989b171 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Fri, 6 Jul 2018 15:08:11 +0100 Subject: [PATCH] Tiny ui build additions 1. Use `ls -A` to list dotfiles also, ready for tarring 2. Don't copy ember's `./tmp` if you have one --- build-support/functions/20-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/functions/20-build.sh b/build-support/functions/20-build.sh index 4118a654c..f2f8d9da5 100644 --- a/build-support/functions/20-build.sh +++ b/build-support/functions/20-build.sh @@ -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