From a77b19c617bdd5fc1bc068ee043662ba2792be15 Mon Sep 17 00:00:00 2001 From: Robert Kenny Date: Fri, 11 Oct 2024 12:52:56 +0100 Subject: [PATCH 1/3] make entrypoint configurable in container definition --- modules/container_definition/main.tf | 2 ++ modules/container_definition/variables.tf | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/modules/container_definition/main.tf b/modules/container_definition/main.tf index a37fe7c..213e8da 100644 --- a/modules/container_definition/main.tf +++ b/modules/container_definition/main.tf @@ -6,6 +6,8 @@ locals { name = var.name image = var.image command = var.command + + entrypoint = var.entrypoint cpu = var.cpu memory = var.memory diff --git a/modules/container_definition/variables.tf b/modules/container_definition/variables.tf index 346dfcf..7150675 100644 --- a/modules/container_definition/variables.tf +++ b/modules/container_definition/variables.tf @@ -103,6 +103,11 @@ variable "memory" { default = null } +variable "entrypoint" { + type = list(string) + default = null +} + variable "memory_reservation" { type = number default = null From e3cf443d9d5c31b1cc1b3e54d9c6e4401ab05a38 Mon Sep 17 00:00:00 2001 From: Robert Kenny Date: Fri, 11 Oct 2024 14:39:00 +0100 Subject: [PATCH 2/3] add release decription --- RELEASE.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 RELEASE.md diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..da05ce3 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,3 @@ +RELEASE_TYPE: minor + +Allow entrypoint to be configurable, this enables more flexibility downstream in container usage. From 90da9e3087ff0a71a02bcb16e522ff27a98aaba8 Mon Sep 17 00:00:00 2001 From: Buildkite on behalf of Wellcome Collection Date: Fri, 11 Oct 2024 13:41:15 +0000 Subject: [PATCH 3/3] Apply auto-formatting rules --- modules/container_definition/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/container_definition/main.tf b/modules/container_definition/main.tf index 213e8da..513be5d 100644 --- a/modules/container_definition/main.tf +++ b/modules/container_definition/main.tf @@ -6,7 +6,7 @@ locals { name = var.name image = var.image command = var.command - + entrypoint = var.entrypoint cpu = var.cpu