Skip to content

Instantly share code, notes, and snippets.

@tomlarkworthy
Created April 9, 2020 19:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
# Copy Camunda base image from Dockerhub image into Google Container Registry
module "docker-mirror-camunda-bpm-platform" {
source = "github.com/neomantra/terraform-docker-mirror"
image_name = local.config.base_image_name
image_tag = local.config.base_image_tag
dest_prefix = "eu.gcr.io/${local.project}"
}
# Hydrate docker template file into .build directory
resource "local_file" "dockerfile" {
content = templatefile("${path.module}/Dockerfile.template", {
project = local.project
image = local.config.base_image_name
tag = local.config.base_image_tag
})
filename = "${path.module}/.build/Dockerfile"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment