Skip to content

Commit 5621c1a

Browse files
author
Krishna Harsha Voora
committed
[CE-186] Update clean & image-clean targets
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>
1 parent 1031cb0 commit 5621c1a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ test-case: ##@Code Run test case for flask server
127127
@$(MAKE) -C test/ all
128128

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

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

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

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

0 commit comments

Comments
 (0)