/** * Instantiate with the image reference to use. * * @param imageReference the image reference * @return a new {@link RegistryImage} * @throws InvalidImageReferenceException if {@code imageReference} is not a valid image reference */ public static RegistryImage named(String imageReference) throws InvalidImageReferenceException { return named(ImageReference.parse(imageReference)); }
/** * Starts building the container from a base image. The base image should be publicly-available. * For a base image that requires credentials, use {@link #from(RegistryImage)}. * * @param baseImageReference the base image reference * @return a new {@link JibContainerBuilder} to continue building the container */ public static JibContainerBuilder from(ImageReference baseImageReference) { return new JibContainerBuilder(RegistryImage.named(baseImageReference)); }
/** * Creates a new {@link JavaContainerBuilder} that uses distroless java as the base image. For * more information on {@code gcr.io/distroless/java}, see <a * href="https://github.com/GoogleContainerTools/distroless">the distroless repository</a>. * * @return a new {@link JavaContainerBuilder} * @throws InvalidImageReferenceException if creating the base image reference fails * @see <a href="https://github.com/GoogleContainerTools/distroless">The distroless repository</a> */ public static JavaContainerBuilder fromDistroless() throws InvalidImageReferenceException { return from(RegistryImage.named("gcr.io/distroless/java")); }
/** * Creates a new {@link JavaContainerBuilder} with the specified base image reference. * * @param baseImageReference the base image reference * @return a new {@link JavaContainerBuilder} */ public static JavaContainerBuilder from(ImageReference baseImageReference) { return from(RegistryImage.named(baseImageReference)); }
/** * Creates a new {@link JavaContainerBuilder} with the specified base image reference. * * @param baseImageReference the base image reference * @return a new {@link JavaContainerBuilder} * @throws InvalidImageReferenceException if {@code baseImageReference} is invalid */ public static JavaContainerBuilder from(String baseImageReference) throws InvalidImageReferenceException { return from(RegistryImage.named(baseImageReference)); }
/** * Starts building the container from a base image. The base image should be publicly-available. * For a base image that requires credentials, use {@link #from(RegistryImage)}. * * @param baseImageReference the base image reference * @return a new {@link JibContainerBuilder} to continue building the container * @throws InvalidImageReferenceException if the {@code baseImageReference} is not a valid image * reference */ public static JibContainerBuilder from(String baseImageReference) throws InvalidImageReferenceException { return from(RegistryImage.named(baseImageReference)); }
/** * Creates a new {@link JavaContainerBuilder} with the specified base image reference. * * @param baseImageReference the base image reference * @return a new {@link JavaContainerBuilder} * @throws InvalidImageReferenceException if {@code baseImageReference} is invalid */ public static JavaContainerBuilder from(String baseImageReference) throws InvalidImageReferenceException { return from(RegistryImage.named(baseImageReference)); }
/** * Creates a new {@link JavaContainerBuilder} with the specified base image reference. * * @param baseImageReference the base image reference * @return a new {@link JavaContainerBuilder} * @throws InvalidImageReferenceException if {@code baseImageReference} is invalid */ public static JavaContainerBuilder from(String baseImageReference) throws InvalidImageReferenceException { return from(RegistryImage.named(baseImageReference)); }
/** * Creates a new {@link JavaContainerBuilder} with the specified base image reference. * * @param baseImageReference the base image reference * @return a new {@link JavaContainerBuilder} */ public static JavaContainerBuilder from(ImageReference baseImageReference) { return from(RegistryImage.named(baseImageReference)); }
/** * Instantiate with the image reference to use. * * @param imageReference the image reference * @return a new {@link RegistryImage} * @throws InvalidImageReferenceException if {@code imageReference} is not a valid image reference */ public static RegistryImage named(String imageReference) throws InvalidImageReferenceException { return named(ImageReference.parse(imageReference)); }
/** * Creates a new {@link JavaContainerBuilder} that uses distroless java as the base image. For * more information on {@code gcr.io/distroless/java}, see <a * href="https://github.com/GoogleContainerTools/distroless">the distroless repository</a>. * * @return a new {@link JavaContainerBuilder} * @throws InvalidImageReferenceException if creating the base image reference fails * @see <a href="https://github.com/GoogleContainerTools/distroless">The distroless repository</a> */ public static JavaContainerBuilder fromDistroless() throws InvalidImageReferenceException { return from(RegistryImage.named("gcr.io/distroless/java")); }
/** * Starts building the container from a base image. The base image should be publicly-available. * For a base image that requires credentials, use {@link #from(RegistryImage)}. * * @param baseImageReference the base image reference * @return a new {@link JibContainerBuilder} to continue building the container */ public static JibContainerBuilder from(ImageReference baseImageReference) { return new JibContainerBuilder(RegistryImage.named(baseImageReference)); }
/** * Starts building the container from a base image. The base image should be publicly-available. * For a base image that requires credentials, use {@link #from(RegistryImage)}. * * @param baseImageReference the base image reference * @return a new {@link JibContainerBuilder} to continue building the container * @throws InvalidImageReferenceException if the {@code baseImageReference} is not a valid image * reference */ public static JibContainerBuilder from(String baseImageReference) throws InvalidImageReferenceException { return from(RegistryImage.named(baseImageReference)); }
/** * Instantiate with the image reference to use. * * @param imageReference the image reference * @return a new {@link RegistryImage} * @throws InvalidImageReferenceException if {@code imageReference} is not a valid image reference */ public static RegistryImage named(String imageReference) throws InvalidImageReferenceException { return named(ImageReference.parse(imageReference)); }
/** * Creates a new {@link JavaContainerBuilder} that uses distroless java as the base image. For * more information on {@code gcr.io/distroless/java}, see <a * href="https://github.com/GoogleContainerTools/distroless">the distroless repository</a>. * * @return a new {@link JavaContainerBuilder} * @throws InvalidImageReferenceException if creating the base image reference fails * @see <a href="https://github.com/GoogleContainerTools/distroless">The distroless repository</a> */ public static JavaContainerBuilder fromDistroless() throws InvalidImageReferenceException { return from(RegistryImage.named("gcr.io/distroless/java")); }
/** * Starts building the container from a base image. The base image should be publicly-available. * For a base image that requires credentials, use {@link #from(RegistryImage)}. * * @param baseImageReference the base image reference * @return a new {@link JibContainerBuilder} to continue building the container */ public static JibContainerBuilder from(ImageReference baseImageReference) { return new JibContainerBuilder(RegistryImage.named(baseImageReference)); }
/** * Creates a new {@link JavaContainerBuilder} with the specified base image reference. * * @param baseImageReference the base image reference * @return a new {@link JavaContainerBuilder} */ public static JavaContainerBuilder from(ImageReference baseImageReference) { return from(RegistryImage.named(baseImageReference)); }
/** * Starts building the container from a base image. The base image should be publicly-available. * For a base image that requires credentials, use {@link #from(RegistryImage)}. * * @param baseImageReference the base image reference * @return a new {@link JibContainerBuilder} to continue building the container * @throws InvalidImageReferenceException if the {@code baseImageReference} is not a valid image * reference */ public static JibContainerBuilder from(String baseImageReference) throws InvalidImageReferenceException { return from(RegistryImage.named(baseImageReference)); }
RegistryImage targetImage = RegistryImage.named(targetImageReference);
RegistryImage targetImage = RegistryImage.named(targetImageReference);