/** * Sets the output file to save the tarball archive to. * * @param outputFile the output file * @return a new {@link TarImage} */ public TarImage saveTo(Path outputFile) { return new TarImage(imageReference, outputFile); } }
/** * Configures the output tarball archive with an image reference to set as its tag. * * @param imageReference the image reference * @return a {@link Builder} to finish constructing a new {@link TarImage} * @throws InvalidImageReferenceException if {@code imageReference} is not a valid image reference */ public static Builder named(String imageReference) throws InvalidImageReferenceException { return named(ImageReference.parse(imageReference)); }
/** * Configures the output tarball archive with an image reference to set as its tag. * * @param imageReference the image reference * @return a {@link Builder} to finish constructing a new {@link TarImage} * @throws InvalidImageReferenceException if {@code imageReference} is not a valid image reference */ public static Builder named(String imageReference) throws InvalidImageReferenceException { return named(ImageReference.parse(imageReference)); }
/** * Sets the output file to save the tarball archive to. * * @param outputFile the output file * @return a new {@link TarImage} */ public TarImage saveTo(Path outputFile) { return new TarImage(imageReference, outputFile); } }
/** * Configures the output tarball archive with an image reference to set as its tag. * * @param imageReference the image reference * @return a {@link Builder} to finish constructing a new {@link TarImage} * @throws InvalidImageReferenceException if {@code imageReference} is not a valid image reference */ public static Builder named(String imageReference) throws InvalidImageReferenceException { return named(ImageReference.parse(imageReference)); }
/** * Sets the output file to save the tarball archive to. * * @param outputFile the output file * @return a new {@link TarImage} */ public TarImage saveTo(Path outputFile) { return new TarImage(imageReference, outputFile); } }
public static PluginConfigurationProcessor processCommonConfigurationForTarImage( RawConfiguration rawConfiguration, InferredAuthProvider inferredAuthProvider, ProjectProperties projectProperties, Path tarImagePath, HelpfulSuggestions helpfulSuggestions) throws InvalidImageReferenceException, MainClassInferenceException, InvalidAppRootException, InferredAuthRetrievalException, IOException, InvalidWorkingDirectoryException, InvalidContainerVolumeException { ImageReference targetImageReference = getGeneratedTargetDockerTag(rawConfiguration, projectProperties, helpfulSuggestions); TarImage targetImage = TarImage.named(targetImageReference).saveTo(tarImagePath); Containerizer containerizer = Containerizer.to(targetImage); return processCommonConfiguration( rawConfiguration, inferredAuthProvider, projectProperties, containerizer, targetImageReference, false); }
public static PluginConfigurationProcessor processCommonConfigurationForTarImage( RawConfiguration rawConfiguration, InferredAuthProvider inferredAuthProvider, ProjectProperties projectProperties, Path tarImagePath, HelpfulSuggestions helpfulSuggestions) throws InvalidImageReferenceException, MainClassInferenceException, InvalidAppRootException, InferredAuthRetrievalException, IOException, InvalidWorkingDirectoryException, InvalidContainerVolumeException { ImageReference targetImageReference = getGeneratedTargetDockerTag(rawConfiguration, projectProperties, helpfulSuggestions); TarImage targetImage = TarImage.named(targetImageReference).saveTo(tarImagePath); Containerizer containerizer = Containerizer.to(targetImage); return processCommonConfiguration( rawConfiguration, inferredAuthProvider, projectProperties, containerizer, targetImageReference, false); }