Class BuildXService


  • public class BuildXService
    extends Object
    • Method Detail

      • build

        public void build​(ProjectPaths projectPaths,
                          ImageConfiguration imageConfig,
                          String configuredRegistry,
                          AuthConfigList authConfig,
                          File buildArchive)
                   throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • push

        public void push​(ProjectPaths projectPaths,
                         ImageConfiguration imageConfig,
                         String configuredRegistry,
                         AuthConfigList authConfig)
                  throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • useBuilder

        protected <C> void useBuilder​(ProjectPaths projectPaths,
                                      ImageConfiguration imageConfig,
                                      String configuredRegistry,
                                      AuthConfigList authConfig,
                                      C context,
                                      io.fabric8.maven.docker.service.BuildXService.Builder<C> builder)
                               throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • createConfigJson

        protected void createConfigJson​(Path configJson,
                                        AuthConfigList authConfig)
                                 throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • removeConfigJson

        protected void removeConfigJson​(Path configJson)
      • buildAndLoadSinglePlatform

        protected void buildAndLoadSinglePlatform​(List<String> buildX,
                                                  String builderName,
                                                  BuildDirs buildDirs,
                                                  ImageConfiguration imageConfig,
                                                  String configuredRegistry,
                                                  File buildArchive)
                                           throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • pushMultiPlatform

        protected void pushMultiPlatform​(List<String> buildX,
                                         String builderName,
                                         BuildDirs buildDirs,
                                         ImageConfiguration imageConfig,
                                         String configuredRegistry,
                                         File buildArchive)
                                  throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getContextPath

        protected Path getContextPath​(File buildArchive)
                               throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • createDirectory

        protected void createDirectory​(Path cachePath)
      • createBuilder

        protected String createBuilder​(Path configPath,
                                       List<String> buildX,
                                       ImageConfiguration imageConfig,
                                       BuildDirs buildDirs)
                                throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • append

        public static <T> List<T> append​(List<T> collection,
                                         T... members)