File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
spring-boot-integration-tests/spring-boot-launch-script-tests
src/test/java/org/springframework/boot/launchscript Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,12 @@ $ mvn -Pdocker clean verify
65
65
The first time the tests are run, Docker will create the container images that are used to
66
66
run the tests. This can take several minutes, particularly if you have a slow network
67
67
connection. Subsequent runs will be faster as the images are cached locally. You can run
68
- `docker images` to see a list of the cached images.
68
+ `docker images` to see a list of the cached images. Images created by these tests will be
69
+ tagged with `spring-boot-it` prefix to easily distinguish them.
69
70
70
71
== Cleaning up
71
72
72
73
If you want to reclaim the disk space used by the cached images (at the expense of having
73
74
to wait for them to be downloaded and rebuilt the next time you run the tests), you can
74
- use `docker images` to list the images and `docker rmi <image>` to delete them. See
75
- `docker rmi --help` for further details.
75
+ use `docker images` to list the images and `docker rmi <image>` to delete them (look for
76
+ `spring-boot-it` tag). See ` docker rmi --help` for further details.
Original file line number Diff line number Diff line change @@ -243,7 +243,8 @@ private String buildImage(DockerClient docker) {
243
243
BuildImageResultCallback resultCallback = new BuildImageResultCallback ();
244
244
String dockerfile = "src/test/resources/conf/" + this .os + "/" + this .version
245
245
+ "/Dockerfile" ;
246
- docker .buildImageCmd (new File (dockerfile )).exec (resultCallback );
246
+ String tag = "spring-boot-it/" + this .os .toLowerCase () + ":" + this .version ;
247
+ docker .buildImageCmd (new File (dockerfile )).withTag (tag ).exec (resultCallback );
247
248
String imageId = resultCallback .awaitImageId ();
248
249
return imageId ;
249
250
}
You can’t perform that action at this time.
0 commit comments