aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
blob: 8be48ac6200f75af89d57e934524203938d51117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
*.DS_Store
*.log
*.pyc
.vimrc
.ropeproject
.settings/
.eggs/
*.orig
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
*.egg
*.egg-info
build
htmlcov
.agignore
.coverage
*.retry
Session*.vim
.tags*
.coverage.*
*~
setuptools*zip
dist/
.testrepository/
cover/
.*.sw?
/docs_build/
/docs_output/
/docs/apidocs/yardstick*.rst
#PyCharm IDE project configuration files
.idea/
# tox virtualenvs
.tox/
dangling_images=($(docker images -f "dangling=true" | grep ${clean_image} | awk '{print $3}')) if [[ -n ${dangling_images} ]]; then for image_id in "${dangling_images[@]}"; do echo "Removing image $image_id, which has no containers and image tag is None" docker rmi $image_id >${redirect} done fi done echo "Remove dovetail images with tag None and containers with these images ..." dangling_images=($(docker images -f "dangling=true" | grep opnfv/dovetail | awk '{print $3}')) if [[ -n ${dangling_images} ]]; then for image_id in "${dangling_images[@]}"; do echo "Removing image $image_id with tag None and its related containers" docker ps -a | grep $image_id | awk '{print $1}'| xargs docker rm -f >${redirect} docker rmi $image_id >${redirect} done fi echo "Cleaning up dovetail docker containers..." if [[ ! -z $(docker ps -a | grep opnfv/dovetail) ]]; then echo "Removing existing opnfv/dovetail containers..." docker ps -a | grep opnfv/dovetail | awk '{print $1}' | xargs docker rm -f >${redirect} fi #echo "Remove dovetail existing images if exist..." #if [[ ! -z $(docker images | grep opnfv/dovetail) ]]; then # echo "Docker images to remove:" # docker images | head -1 && docker images | grep opnfv/dovetail >${redirect} # image_tags=($(docker images | grep opnfv/dovetail | awk '{print $2}')) # for tag in "${image_tags[@]}"; do # echo "Removing docker image opnfv/dovetail:$tag..." # docker rmi opnfv/dovetail:$tag >${redirect} # done #fi