RegistryImageArgs

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

Manages the lifecycle of docker image in a registry. You can upload images to a registry (= docker push) and also delete them again

Example Usage

Build an image with the docker.RemoteImage resource and then push it to a registry:

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.RemoteImage;
import com.pulumi.docker.RemoteImageArgs;
import com.pulumi.docker.inputs.RemoteImageBuildArgs;
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()
.keepRemotely(true)
.build());
var image = new RemoteImage("image", RemoteImageArgs.builder()
.name("registry.com/somename:1.0")
.build(RemoteImageBuildArgs.builder()
.context(String.format("%s/absolutePathToContextFolder", path.cwd()))
.build())
.build());
}
}

Constructors

Link copied to clipboard
fun RegistryImageArgs(insecureSkipVerify: Output<Boolean>? = null, keepRemotely: Output<Boolean>? = null, name: Output<String>? = null, triggers: Output<Map<String, Any>>? = null)

Functions

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

Properties

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.

Link copied to clipboard
val triggers: Output<Map<String, Any>>? = null

A map of arbitrary strings that, when changed, will force the docker.RegistryImage resource to be replaced. This can be used to repush a local image