Skip to content

Commit f4b7532

Browse files
authored
setup a simple nginx web server (#24)
Instead of configuring this template with a non-existing container use a simple nginx web server just to deploy this template into an initial working state. This will allow further development from a working state.
1 parent 780444c commit f4b7532

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
stack_name_prefix = f"app-{environment}"
4343
fully_qualified_domain_name = environment_variables["FQDN"]
4444
environment_tags = environment_variables["TAGS"]
45-
app_version = "edge"
45+
app_version = "latest"
4646

4747
# Define stacks
4848
cdk_app = cdk.App()
@@ -79,7 +79,8 @@
7979
ecs_task_cpu=256,
8080
ecs_task_memory=512,
8181
container_name="my-app",
82-
container_location=f"ghcr.io/sage-bionetworks/my-app:{app_version}",
82+
# can also reference github with 'ghcr.io/sage-bionetworks/my-app:{app_version}'
83+
container_location=f"nginx:{app_version}",
8384
container_port=80,
8485
container_env_vars={
8586
"APP_VERSION": f"{app_version}",
@@ -93,7 +94,6 @@
9394
props=app_props,
9495
load_balancer=load_balancer_stack.alb,
9596
certificate_arn=environment_variables["CERTIFICATE_ARN"],
96-
health_check_path="/health",
9797
)
9898
app_stack.add_dependency(app_stack)
9999

0 commit comments

Comments
 (0)