RegistryImageArgs

data class RegistryImageArgs(val build: Output<RegistryImageBuildArgs>? = null, val insecureSkipVerify: Output<Boolean>? = null, val keepRemotely: Output<Boolean>? = null, val name: Output<String>? = null) : ConvertibleToJava<RegistryImageArgs>

Manages the lifecycle of docker image/tag in a registry means it can store one or more version of specific docker images and identified by their tags.

Example Usage

To be able to update an image itself when an updated image arrives.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.docker.RegistryImage;
import com.pulumi.docker.RegistryImageArgs;
import com.pulumi.docker.inputs.RegistryImageBuildArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var helloworld = new RegistryImage("helloworld", RegistryImageArgs.builder()
.build(RegistryImageBuildArgs.builder()
.context(String.format("%s/absolutePathToContextFolder", path.cwd()))
.build())
.build());
}
}

Constructors

Link copied to clipboard
constructor(build: Output<RegistryImageBuildArgs>? = null, insecureSkipVerify: Output<Boolean>? = null, keepRemotely: Output<Boolean>? = null, name: Output<String>? = null)

Properties

Link copied to clipboard
val build: Output<RegistryImageBuildArgs>? = null

Definition for building the image

Link copied to clipboard
val insecureSkipVerify: Output<Boolean>? = null

If true, the verification of TLS certificates of the server/registry is disabled. Defaults to false

Link copied to clipboard
val keepRemotely: Output<Boolean>? = null

If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to false

Link copied to clipboard
val name: Output<String>? = null

The name of the Docker image.

Functions

Link copied to clipboard
open override fun toJava(): RegistryImageArgs