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 Nov 11, 2024
1 parent fd3dad6 commit 39fd177
Show file tree
Hide file tree
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
Expand Up @@ -92,6 +92,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.
Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 39fd177

Please sign in to comment.