Skip to content

Commit

Permalink
add clean up for build-docker and build-external-docker
Browse files Browse the repository at this point in the history
Signed-off-by: Shovan Maity <[email protected]>
  • Loading branch information
shovanmaity committed Jun 14, 2019
1 parent d010313 commit 652588a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ client/build/index.html: $(shell find client/app -type f) $(SCOPE_UI_TOOLCHAIN_U
$(SCOPE_UI_BUILD_IMAGE) yarn run build-docker; \
mkdir -p client/build; \
cp -r client/build-docker/* client/build; \
$(SUDO) docker run $(RM) $(RUN_FLAGS) \
-v $(shell pwd)/client:/home/weave/scope/client \
-w /home/weave/scope/client \
$(SCOPE_UI_BUILD_IMAGE) yarn run clean-build-docker; \
fi

client/build-external/index.html: $(shell find client/app -type f) $(SCOPE_UI_TOOLCHAIN_UPTODATE)
Expand All @@ -182,6 +186,10 @@ client/build-external/index.html: $(shell find client/app -type f) $(SCOPE_UI_TO
$(SCOPE_UI_BUILD_IMAGE) yarn run build-external-docker; \
mkdir client/build-external; \
cp -r client/build-docker-external/* client/build-external; \
$(SUDO) docker run $(RM) $(RUN_FLAGS) \
-v $(shell pwd)/client:/home/weave/scope/client \
-w /home/weave/scope/client \
$(SCOPE_UI_BUILD_IMAGE) yarn run clean-build-external-docker; \
fi

client-test: $(shell find client/app/scripts -type f) $(SCOPE_UI_TOOLCHAIN_UPTODATE)
Expand Down

0 comments on commit 652588a

Please sign in to comment.