Skip to content

Commit

Permalink
Fixed syntax error and normalised spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl committed Sep 23, 2024
1 parent 9828be7 commit 10fe4aa
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions container-definitions/app.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"tag": "${syslog_tag}"
}
},
%{else}
%{ else }
%{ if cloudwatch_log_group != "" }
"logConfiguration": {
"logDriver": "awslogs",
Expand Down Expand Up @@ -43,7 +43,7 @@
"healthCheck": {
"command": ["CMD-SHELL", "curl -f localhost:${container_port} || exit 1]
},
{% endif }
%{ endif }
%{ endif }
%{ if environment != "[]" }
"environment": ${environment},
Expand All @@ -65,10 +65,10 @@
%{ if linux_parameters != "{}" }
"linuxParameters": ${linux_parameters},
%{ endif }
%{if entrypoint != "[]"}
%{ if entrypoint != "[]" }
"entrypoint": ${entrypoint},
%{ endif }
%{if command != "[]"}
%{ if command != "[]" }
"command": ${command},
%{ endif }
"memoryReservation": 16,
Expand All @@ -86,7 +86,7 @@
"tag": "${syslog_tag}"
}
},
%{else}
%{ else }
%{ if cloudwatch_log_group != "" }
"logConfiguration": {
"logDriver": "awslogs",
Expand All @@ -103,7 +103,6 @@
"logDriver": "json-file"
},
%{ endif }
%{ endif }
"portMappings": [
{
"hostPort": 0,
Expand All @@ -114,7 +113,7 @@
%{ if sidecar_environment != "[]" }
"environment": ${sidecar_environment},
%{ endif }
%{if sidecar_entrypoint != "[]"}
%{ if sidecar_entrypoint != "[]" }
"entrypoint": ${sidecar_entrypoint},
%{ endif }
"memoryReservation": 16,
Expand All @@ -126,5 +125,5 @@
}
]
}
{% endif }
%{ endif }
]

0 comments on commit 10fe4aa

Please sign in to comment.