Skip to content

Instantly share code, notes, and snippets.

@tomlarkworthy
Created April 9, 2020 19:50
Show Gist options
  • Save tomlarkworthy/0f5dc8b38247c290e1c35f10157a3fba to your computer and use it in GitHub Desktop.
Save tomlarkworthy/0f5dc8b38247c290e1c35f10157a3fba to your computer and use it in GitHub Desktop.
# 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