use of com.spotify.docker.client.DockerClient.BuildParam in project docker-client by spotify.
the class DefaultDockerClientTest method testBuildImageIdWithBuildargs.
@Test
public void testBuildImageIdWithBuildargs() throws Exception {
requireDockerApiVersionAtLeast("1.21", "build args");
final Path dockerDirectory = getResource("dockerDirectoryWithBuildargs");
final String buildargs = "{\"testargument\":\"22-12-2015\"}";
final BuildParam buildParam = BuildParam.create("buildargs", URLEncoder.encode(buildargs, "UTF-8"));
sut.build(dockerDirectory, "test-buildargs", buildParam);
}
Aggregations