Tag Docker images created by launch script integration tests

Closes gh-5168
This commit is contained in:
Vedran Pavic
2016-02-16 21:15:24 +01:00
committed by Andy Wilkinson
parent b061aa5d7e
commit 2641fe8f26
2 changed files with 6 additions and 4 deletions

View File

@@ -243,7 +243,8 @@ public class SysVinitLaunchScriptIT {
BuildImageResultCallback resultCallback = new BuildImageResultCallback();
String dockerfile = "src/test/resources/conf/" + this.os + "/" + this.version
+ "/Dockerfile";
docker.buildImageCmd(new File(dockerfile)).exec(resultCallback);
String tag = "spring-boot-it/" + this.os.toLowerCase() + ":" + this.version;
docker.buildImageCmd(new File(dockerfile)).withTag(tag).exec(resultCallback);
String imageId = resultCallback.awaitImageId();
return imageId;
}