From 1e2ab758316629b749b1b2b4902fc289984356a2 Mon Sep 17 00:00:00 2001 From: Victor Grenu Date: Mon, 16 Sep 2024 18:19:03 +0200 Subject: [PATCH] updating to arm architecture, more recent image --- automation/Dockerfile | 2 +- .../tf-fargate/tasks/task_definition.json | 36 +++---------------- 2 files changed, 6 insertions(+), 32 deletions(-) diff --git a/automation/Dockerfile b/automation/Dockerfile index 8cfbc6ba896..51b9f9b7cd7 100644 --- a/automation/Dockerfile +++ b/automation/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/amazonlinux/amazonlinux:latest +FROM public.ecr.aws/amazonlinux/amazonlinux:2023 # Install dependencies RUN yum update -y && \ diff --git a/automation/tf-fargate/tasks/task_definition.json b/automation/tf-fargate/tasks/task_definition.json index 22563a2002f..5374c06f72c 100644 --- a/automation/tf-fargate/tasks/task_definition.json +++ b/automation/tf-fargate/tasks/task_definition.json @@ -1,9 +1,7 @@ [ { - "dnsSearchDomains": null, "logConfiguration": { "logDriver": "awslogs", - "secretOptions": null, "options": { "awslogs-group": "/ecs/${project}-${env}", "awslogs-region": "${aws_region}", @@ -12,42 +10,18 @@ }, "image": "${container_image}", "name": "${project}-${env}-container", - "entryPoint": null, - "portMappings": [], - "command": null, - "linuxParameters": null, - "cpu": 0, + "runtimePlatform": { + "operatingSystemFamily": "LINUX", + "cpuArchitecture": "ARM64" + }, "environment": [ { "name": "Environment", "value": "${env}" } ], - "resourceRequirements": null, - "ulimits": null, - "dnsServers": null, "mountPoints": [], - "workingDirectory": null, - "secrets": null, - "dockerSecurityOptions": null, - "memory": null, - "memoryReservation": null, "volumesFrom": [], - "stopTimeout": null, - "startTimeout": null, - "dependsOn": null, - "disableNetworking": null, - "interactive": null, - "healthCheck": null, - "essential": true, - "links": null, - "hostname": null, - "extraHosts": null, - "pseudoTerminal": null, - "user": null, - "readonlyRootFilesystem": null, - "dockerLabels": null, - "systemControls": null, - "privileged": null + "essential": true } ]