Skip to content

Commit

Permalink
Update fargate documentation (#2342)
Browse files Browse the repository at this point in the history
(cherry picked from commit f9096bf)
  • Loading branch information
ramanan-ravi committed Oct 22, 2024
1 parent d3a59da commit e4474f2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion deepfence_agent/agent-binary/Dockerfile.fargate
Original file line number Diff line number Diff line change
@@ -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-)?(?<major>\d+)_(?<minor>\d+)_(?<patch>\d+)$ extractVersion=^(?:curl-)?(?<version>[\d_]+)$
ENV CURL_VERSION="8_5_0"

Expand Down Expand Up @@ -111,6 +110,8 @@ RUN set -x \

FROM scratch

ARG AGENT_BINARY_BUILD_RELATIVE

LABEL MAINTAINER="Deepfence Inc"
LABEL deepfence.role=system

Expand Down
Binary file modified docs/docs/img/fargate-task-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 16 additions & 5 deletions docs/docs/sensors/aws-fargate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand All @@ -329,7 +330,7 @@ Then create the new policy.
},
{
"name": "DF_INSTALL_DIR",
"value": "/usr/local/bin"
"value": "/deepfence"
},
{
"name": "MGMT_CONSOLE_URL_SCHEMA",
Expand All @@ -353,13 +354,21 @@ Then create the new policy.
"valueFrom": "<API_KEY_SECRET_ARN>: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"
}
}
},
Expand All @@ -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"
}
}
}
Expand Down

0 comments on commit e4474f2

Please sign in to comment.