Skip to content

Instantly share code, notes, and snippets.

@jottinger
Created September 29, 2014 15:35
Show Gist options
  • Save jottinger/146d08e3d1e984e6e59e to your computer and use it in GitHub Desktop.
Save jottinger/146d08e3d1e984e6e59e to your computer and use it in GitHub Desktop.
Joseph@netzach ~/work/java/docker-maven-plugin
$ mvn install; mvn com.autumncode.docker:docker-maven-plugin:1.0-SNAPSHOT:docker -Dimage=hello-world
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building docker-maven-plugin Maven Plugin 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-plugin-plugin:3.2:helpmojo (help-goal) @ docker-maven-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: java-annotations
[INFO] Mojo extractor for language: java-annotations found 2 mojo descriptors.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ docker-maven-plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\cygwin64\home\Joseph\work\java\docker-maven-plugin\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ docker-maven-plugin ---
[INFO] Compiling 2 source files to C:\cygwin64\home\Joseph\work\java\docker-maven-plugin\target\classes
[INFO]
[INFO] --- maven-plugin-plugin:3.2:descriptor (default-descriptor) @ docker-maven-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: java-annotations
[INFO] Mojo extractor for language: java-annotations found 2 mojo descriptors.
[INFO]
[INFO] --- maven-plugin-plugin:3.2:descriptor (mojo-descriptor) @ docker-maven-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: java-annotations
[INFO] Mojo extractor for language: java-annotations found 2 mojo descriptors.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ docker-maven-plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\cygwin64\home\Joseph\work\java\docker-maven-plugin\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ docker-maven-plugin ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ docker-maven-plugin ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ docker-maven-plugin ---
[INFO] Building jar: C:\cygwin64\home\Joseph\work\java\docker-maven-plugin\target\docker-maven-plugin-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-plugin-plugin:3.2:addPluginArtifactMetadata (default-addPluginArtifactMetadata) @ docker-maven-plugin ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ docker-maven-plugin ---
[INFO] Installing C:\cygwin64\home\Joseph\work\java\docker-maven-plugin\target\docker-maven-plugin-1.0-SNAPSHOT.jar to C:\Users\Joseph\.m2\repository\com\autumncode\docker\docker-maven-plugin\1.0-SNAPSHOT\docker-maven-plugin-1.0-SNAPSHOT.jar
[INFO] Installing C:\cygwin64\home\Joseph\work\java\docker-maven-plugin\pom.xml to C:\Users\Joseph\.m2\repository\com\autumncode\docker\docker-maven-plugin\1.0-SNAPSHOT\docker-maven-plugin-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.925 s
[INFO] Finished at: 2014-09-29T11:35:13-04:00
[INFO] Final Memory: 21M/124M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building docker-maven-plugin Maven Plugin 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- docker-maven-plugin:1.0-SNAPSHOT:docker (default-cli) @ docker-maven-plugin ---
[INFO] Waiting for VM and Docker daemon to start...
[INFO] ..
[INFO] Started.
[INFO] Docker client does not run on Windows for now. Please use
[INFO] "boot2docker" ssh
[INFO] to SSH into the VM instead.
[INFO]
[INFO] Hello from Docker.
[INFO] This message shows that your installation appears to be working correctly.
[INFO]
[INFO] To generate this message, Docker took the following steps:
[INFO] 1. The Docker client contacted the Docker daemon.
[INFO] 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
[INFO] (Assuming it was not already locally available.)
[INFO] 3. The Docker daemon created a new container from that image which runs the
[INFO] executable that produces the output you are currently reading.
[INFO] 4. The Docker daemon streamed that output to the Docker client, which sent it
[INFO] to your terminal.
[INFO]
[INFO] To try something more ambitious, you can run an Ubuntu container with:
[INFO] $ docker run -it ubuntu bash
[INFO]
[INFO] For more examples and ideas, visit:
[INFO] http://docs.docker.com/userguide/
[INFO]
The VM's Host only interface IP address is: 192.168.59.103
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.609 s
[INFO] Finished at: 2014-09-29T11:35:26-04:00
[INFO] Final Memory: 4M/289M
[INFO] ------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment