-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bcd: introduce 'clean' subcommand for complete refresh
This adds a new subcommand to bcd which you can use to completely refresh the environment. It removes all existing containers, removes the bodhi-dev-bodhi and bodhi-dev-ipsilon images (so they will be rebuilt on the next run), and pulls the latest versions of all the base images we use (so all the containers will be rebased on fresh versions of their base images at the next run). This should give you a completely clean and updated bcd environment the next time you do `./bcd run`. Signed-off-by: Adam Williamson <awilliam@redhat.com>
- Loading branch information
1 parent
533d667
commit 8226220
Showing
5 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- include_tasks: remove.yml | ||
|
||
- name: "Remove all built images" | ||
containers.podman.podman_image: | ||
name: "{{ item }}" | ||
state: absent | ||
with_items: | ||
- "localhost/bodhi-dev-bodhi" | ||
- "localhost/bodhi-dev-ipsilon" | ||
|
||
- name: "Update all base images" | ||
containers.podman.podman_image: | ||
name: "{{item }}" | ||
force: true | ||
with_items: | ||
- "docker.io/library/postgres:latest" | ||
- "factory2/waiverdb:latest" | ||
- "quay.io/factory2/greenwave:latest" | ||
- "docker.io/library/rabbitmq:4-management" | ||
- "quay.io/fedora/fedora:latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bcd has a new clean subcommand to completely refresh the bcd environment |