Skip to content

Commit

Permalink
[CE-186] Update clean & image-clean targets
Browse files Browse the repository at this point in the history
Updated `make clean` & `make image-clean` targets
which now deletes `build/` and locally built docker images.

Change-Id: I65aa111dda2796c5512f174adace7fcae99d8021
Signed-off-by: Krishna Harsha Voora <krishvoor@in.ibm.com>
  • Loading branch information
krishvoor committed Dec 6, 2017
1 parent 1031cb0 commit 5621c1a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ test-case: ##@Code Run test case for flask server
@$(MAKE) -C test/ all

clean: ##@Code Clean tox result
rm -rf .tox .cache *.egg-info
rm -rf .tox .cache *.egg-info build/
find . -name "*.pyc" -o -name "__pycache__" -exec rm -rf "{}" \;

# TODO (david_dornseier): As long as there are no release versions, always rewrite
Expand All @@ -152,10 +152,9 @@ logs: ##@Log tail for all service log
redeploy: ##@Service Redeploy single service, Use like "make redeploy service=dashboard"
bash scripts/master_node/redeploy.sh ${service}

image-clean: ##@Clean all existing images to rebuild
image-clean: clean ##@Clean all existing images to rebuild
echo "Clean all cello related images, may need to remove all containers before"
docker images | grep "cello-" | awk '{print $1}' | xargs docker rmi -f
docker rmi $(docker images -f dangling=true -q)
docker images | grep "hyperledger/cello-" | awk '{print $3}' | xargs docker rmi -f

initial-env: ##@Configuration Initial Configuration for dashboard
$(SED) 's/\(STATIC_FOLDER=\).*/\1${STATIC_FOLDER}/' .env
Expand Down

0 comments on commit 5621c1a

Please sign in to comment.