renovate/lib/modules/manager/terraform/__fixtures__/docker.tf
Michael Kriese 3f33995ab9
feat(manager/terraform): support registry aliases for docker images and oci helm charts (#22022)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-05-09 15:26:00 +00:00

58 lines
1.2 KiB
HCL

# docker_image resources
# https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/image
resource "docker_image" "nginx" {
name = "nginx:1.7.8"
}
resource "docker_image" "invalid" {
}
resource "docker_image" "ignore_variable" {
name = "${data.docker_registry_image.ubuntu.name}"
pull_triggers = ["${data.docker_registry_image.ubuntu.sha256_digest}"]
}
resource "docker_image" "proxy" {
name = "hub.proxy.test/bitnami/nginx:1.24.0"
}
# docker_container resources
# https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/container
resource "docker_container" "foo" {
name = "foo"
image = "nginx:1.7.8"
}
resource "docker_container" "invalid" {
name = "foo"
}
# docker_service resources
# https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/service
resource "docker_service" "foo" {
name = "foo-service"
task_spec {
container_spec {
image = "repo.mycompany.com:8080/foo-service:v1"
}
}
endpoint_spec {
ports {
target_port = "8080"
}
}
}
resource "docker_service" "invalid" {
}
# unsupported resources
resource "not_supported_resource" "foo" {
name = "foo"
image = "nginx:1.7.8"
dummy = "true"
}