Fossil SCM
Added "container-clean" target to cleanup after the other container-* targets.
Commit
e119d5983620df4cf6be104ce1a297399fb5d77e5a89c842a9d5aa5730e23f5c
Parent
fb1bfce16dda5d8…
1 file changed
+5
+5
| --- Makefile.in | ||
| +++ Makefile.in | ||
| @@ -145,5 +145,10 @@ | ||
| 145 | 145 | --cap-drop SETPCAP \ |
| 146 | 146 | --detach --publish 8080:8080 \ |
| 147 | 147 | $(DRFLAGS) fossil:@FOSSIL_CI_PFX@ |
| 148 | 148 | @sleep 1 # decrease likelihood of logging race condition |
| 149 | 149 | docker container logs fossil-@FOSSIL_CI_PFX@ |
| 150 | + | |
| 151 | +container-clean: | |
| 152 | + -docker container kill fossil-@FOSSIL_CI_PFX@ | |
| 153 | + -docker container rm fossil-@FOSSIL_CI_PFX@ | |
| 154 | + -docker image rm fossil:@FOSSIL_CI_PFX@ | |
| 150 | 155 |
| --- Makefile.in | |
| +++ Makefile.in | |
| @@ -145,5 +145,10 @@ | |
| 145 | --cap-drop SETPCAP \ |
| 146 | --detach --publish 8080:8080 \ |
| 147 | $(DRFLAGS) fossil:@FOSSIL_CI_PFX@ |
| 148 | @sleep 1 # decrease likelihood of logging race condition |
| 149 | docker container logs fossil-@FOSSIL_CI_PFX@ |
| 150 |
| --- Makefile.in | |
| +++ Makefile.in | |
| @@ -145,5 +145,10 @@ | |
| 145 | --cap-drop SETPCAP \ |
| 146 | --detach --publish 8080:8080 \ |
| 147 | $(DRFLAGS) fossil:@FOSSIL_CI_PFX@ |
| 148 | @sleep 1 # decrease likelihood of logging race condition |
| 149 | docker container logs fossil-@FOSSIL_CI_PFX@ |
| 150 | |
| 151 | container-clean: |
| 152 | -docker container kill fossil-@FOSSIL_CI_PFX@ |
| 153 | -docker container rm fossil-@FOSSIL_CI_PFX@ |
| 154 | -docker image rm fossil:@FOSSIL_CI_PFX@ |
| 155 |