mirror of
https://github.com/imjasonh/terraform-playground
synced 2026-07-06 23:12:22 +00:00
dry
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
02d119cd7a
commit
4e047293ed
3 changed files with 4 additions and 2 deletions
|
|
@ -36,4 +36,6 @@ module "container_vm" {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Next, create VM instances from this template, route traffic to them via GCLB, etc.
|
||||
```
|
||||
|
|
|
|||
|
|
@ -29,8 +29,7 @@ write_files:
|
|||
ExecStartPre=-/usr/bin/docker rm ${name}
|
||||
|
||||
# Configure docker credential helper for Artifact Registry
|
||||
# TODO(jason): Set this for each requested registry region.
|
||||
ExecStartPre=/usr/bin/docker-credential-gcr configure-docker --registries=us-east4-docker.pkg.dev
|
||||
ExecStartPre=/usr/bin/docker-credential-gcr configure-docker --registries=${region}-docker.pkg.dev
|
||||
|
||||
# Pull the image before starting.
|
||||
ExecStartPre=/usr/bin/docker pull ${container.image}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ locals {
|
|||
containers = var.containers,
|
||||
enable_logging = var.enable_logging,
|
||||
project_id = var.project_id,
|
||||
region = var.region,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue