Class PullMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="pull",
          defaultPhase=PROCESS_CLASSES)
    public final class PullMojo
    extends org.apache.maven.plugin.AbstractMojo
    Pull Docker image from Docker Hub.

    This goal pulls Docker image from Docker Hub to your machine. You may skip this goal and simply use the optimize goal, which will automatically pull the image from the Hub. However, it would be cleaner to use pull, then optimize, and then rmi (which deletes the image from your machine).

    Since:
    0.1.0
    • Field Detail

      • image

        @Parameter(property="hone.image",
                   defaultValue="yegor256/hone")
        protected String image
        Docker image to use.
        Since:
        0.1.0
        Suppressed Checkstyle violations:
        VisibilityModifierCheck (5 lines)
      • sudo

        @Parameter(property="hone.sudo",
                   defaultValue="false")
        protected boolean sudo
        Use "sudo" for "docker".
        Since:
        0.1.0
        Suppressed Checkstyle violations:
        VisibilityModifierCheck (5 lines)
    • Constructor Detail

      • PullMojo

        public PullMojo()
    • Method Detail

      • execute

        public final void execute()
                           throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException