aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2018-07-08 18:44:18 +0200
committerMartin André <m.andre@redhat.com>2018-07-10 10:12:48 +0200
commit7e770472b15a3866a57d271daad1524c503ea765 (patch)
tree20630c48b353bc90005d5e950d2c2a174d26a100 /tests
parentc4eb866ad5b6a70f86397bf4acc5988bf417fefd (diff)
downloadkolla-7e770472b15a3866a57d271daad1524c503ea765.tar.gz
kolla-7e770472b15a3866a57d271daad1524c503ea765.zip
Show disk space used by docker images in CI
The `docker system df` command can show the total size of the docker cache. If you pass it the `-v` option, it will break it down per image, replacing the use of `docker ps -a` and `docker images`. This should be very useful in CI to see the variation in the images size. Change-Id: I407434d88f59df65693974265551c624420d4aaf
Diffstat (limited to 'tests')
-rw-r--r--tests/playbooks/post.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/playbooks/post.yml b/tests/playbooks/post.yml
index 9ed6128c5..574917e12 100644
--- a/tests/playbooks/post.yml
+++ b/tests/playbooks/post.yml
@@ -48,7 +48,7 @@
ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > logs/ps.txt
# docker related information
- (docker info && docker images && docker ps -a) > logs/docker-info.txt
+ (docker info && docker system df && docker system df -v) > logs/docker-info.txt
sudo cp -r /etc/kolla logs/kolla_configs