diff --git a/deepfence_agent/agent-binary/Dockerfile.fargate b/deepfence_agent/agent-binary/Dockerfile.fargate index 30a17bf4f4..6feaf36004 100644 --- a/deepfence_agent/agent-binary/Dockerfile.fargate +++ b/deepfence_agent/agent-binary/Dockerfile.fargate @@ -1,6 +1,5 @@ FROM alpine:3.19 as builder -ARG AGENT_BINARY_BUILD_RELATIVE # renovate: source=github-tags name=curl/curl versioning=regex:^(?:curl-)?(?\d+)_(?\d+)_(?\d+)$ extractVersion=^(?:curl-)?(?[\d_]+)$ ENV CURL_VERSION="8_5_0" @@ -111,6 +110,8 @@ RUN set -x \ FROM scratch +ARG AGENT_BINARY_BUILD_RELATIVE + LABEL MAINTAINER="Deepfence Inc" LABEL deepfence.role=system diff --git a/docs/docs/img/fargate-task-3.png b/docs/docs/img/fargate-task-3.png index cacb70eb2a..b8e985fd16 100644 Binary files a/docs/docs/img/fargate-task-3.png and b/docs/docs/img/fargate-task-3.png differ diff --git a/docs/docs/sensors/aws-fargate.md b/docs/docs/sensors/aws-fargate.md index c2e8aab361..05cc8383f8 100644 --- a/docs/docs/sensors/aws-fargate.md +++ b/docs/docs/sensors/aws-fargate.md @@ -114,7 +114,7 @@ If you are using json to configure your task definitions, you can use the follow }, { "name": "DF_INSTALL_DIR", - "value": "/path/to/custom/install/dir" + "value": "/deepfence" }, { "name": "MGMT_CONSOLE_URL_SCHEMA", @@ -302,7 +302,8 @@ Then create the new policy. "name": "python-8000-tcp", "containerPort": 8000, "hostPort": 8000, - "protocol": "tcp" + "protocol": "tcp", + "appProtocol": "http" } ], "essential": true, @@ -329,7 +330,7 @@ Then create the new policy. }, { "name": "DF_INSTALL_DIR", - "value": "/usr/local/bin" + "value": "/deepfence" }, { "name": "MGMT_CONSOLE_URL_SCHEMA", @@ -353,13 +354,21 @@ Then create the new policy. "valueFrom": ":deepfence_api_key::" } ], + "dependsOn": [ + { + "containerName": "deepfence-agent", + "condition": "COMPLETE" + } + ], "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-create-group": "true", "awslogs-group": "/ecs/test-doc-python", "awslogs-region": "us-west-2", - "awslogs-stream-prefix": "ecs" + "awslogs-stream-prefix": "ecs", + "mode": "non-blocking", + "max-buffer-size": "25m" } } }, @@ -379,7 +388,9 @@ Then create the new policy. "awslogs-create-group": "true", "awslogs-group": "/ecs/test-doc-python", "awslogs-region": "us-west-2", - "awslogs-stream-prefix": "ecs" + "awslogs-stream-prefix": "ecs", + "mode": "non-blocking", + "max-buffer-size": "25m" } } }