Merge "Prune docker images after docker-compose up"

This commit is contained in:
Zuul 2019-05-16 22:55:04 +00:00 committed by Gerrit Code Review
commit 157ad6d521
4 changed files with 12 additions and 0 deletions

View File

@ -45,6 +45,9 @@
shell: shell:
cmd: docker-compose up -d --timeout 60 cmd: docker-compose up -d --timeout 60
chdir: /etc/gitea-docker/ chdir: /etc/gitea-docker/
- name: Run docker prune to cleanup unneeded images
shell:
cmd: docker image prune -f
- name: Check if root user exists - name: Check if root user exists
uri: uri:
url: "https://localhost:3000/api/v1/users/root" url: "https://localhost:3000/api/v1/users/root"

View File

@ -32,3 +32,6 @@
shell: shell:
cmd: docker-compose up -d cmd: docker-compose up -d
chdir: /etc/haproxy-docker/ chdir: /etc/haproxy-docker/
- name: Run docker prune to cleanup unneeded images
shell:
cmd: docker image prune -f

View File

@ -49,6 +49,9 @@
shell: shell:
cmd: docker-compose up -d cmd: docker-compose up -d
chdir: /etc/registry-docker/ chdir: /etc/registry-docker/
- name: Run docker prune to cleanup unneeded images
shell:
cmd: docker image prune -f
- name: Install cron to garbage collect the registry daily - name: Install cron to garbage collect the registry daily
cron: cron:

View File

@ -15,3 +15,6 @@
shell: shell:
cmd: docker-compose up -d cmd: docker-compose up -d
chdir: /etc/zuul-preview-docker/ chdir: /etc/zuul-preview-docker/
- name: Run docker prune to cleanup unneeded images
shell:
cmd: docker image prune -f