/** * Creates a new {@link JavaContainerBuilder} with the specified base image. * * @param registryImage the {@link RegistryImage} that defines base container registry and * credentials * @return a new {@link JavaContainerBuilder} */ public static JavaContainerBuilder from(RegistryImage registryImage) { return new JavaContainerBuilder(Jib.from(registryImage)); }
/** * 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. * * @param registryImage the {@link RegistryImage} that defines base container registry and * credentials * @return a new {@link JavaContainerBuilder} */ public static JavaContainerBuilder from(RegistryImage registryImage) { return new JavaContainerBuilder(Jib.from(registryImage)); }
/** * Creates a new {@link JavaContainerBuilder} with the specified base image. * * @param registryImage the {@link RegistryImage} that defines base container registry and * credentials * @return a new {@link JavaContainerBuilder} */ public static JavaContainerBuilder from(RegistryImage registryImage) { return new JavaContainerBuilder(Jib.from(registryImage)); }
/** * 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)); }
/** * 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)); }
final JibContainerBuilder builder = Jib.from(ImageReference.parse(fromImage)); builder .setCreationTime(creationTime == null || creationTime.trim().isEmpty() ? Instant.now()
Jib.from(baseImage) .setLayers(projectProperties.getJavaLayerConfigurations().getLayerConfigurations()) .setEntrypoint(computeEntrypoint(rawConfiguration, projectProperties))
Jib.from(baseImage) .setLayers(projectProperties.getJavaLayerConfigurations().getLayerConfigurations()) .setEntrypoint(computeEntrypoint(rawConfiguration, projectProperties))