Skip to content

Commit

Permalink
feat: add option to override image entrypoint and command
Browse files Browse the repository at this point in the history
  • Loading branch information
d-costa committed Dec 5, 2023
1 parent 6514948 commit ce7e1c4
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -91,6 +91,8 @@ module "container" {
name = key
value = value
}]
command = var.command
args = var.args

# Declare volumes to be mounted.
# This is similar to how docker volumes are declared.
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -65,6 +65,18 @@ variable "image" {
default = "ghcr.io/runatlantis/atlantis:latest"
}

variable "command" {
type = list(string)
description = "Command to override the container image ENTRYPOINT"
default = null
}

variable "args" {
type = list(string)
description = "Arguments to override the container image default command (CMD)."
default = null
}

variable "env_vars" {
type = map(any)
description = "Key-value pairs representing environment variables and their respective values"

0 comments on commit ce7e1c4

Please sign in to comment.