Package org.jclouds.docker.options

Examples of org.jclouds.docker.options.BuildOptions


      consumeStream(deleteImageStream, false);
      assertNull(api().inspectImage(image.getId()));
   }

   public void testBuildImage() throws IOException, InterruptedException, URISyntaxException {
      BuildOptions options = BuildOptions.Builder.tag("testBuildImage").verbose(false).nocache(false);
      InputStream buildImageStream = api().build(new File(Resources.getResource("Dockerfile").toURI()), options);
      String buildStream = consumeStream(buildImageStream, false);
      Iterable<String> splitted = Splitter.on("\n").split(buildStream.replace("\r", "").trim());
      String lastStreamedLine = Iterables.getLast(splitted).trim();
      String rawImageId = Iterables.getLast(Splitter.on("Successfully built ").split(lastStreamedLine));
View Full Code Here

TOP

Related Classes of org.jclouds.docker.options.BuildOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.