Spaces:
Sleeping
Sleeping
ourteam commited on
Commit ·
a3f8e02
1
Parent(s): 2b03d27
set up production
Browse files
.aws/task-definition-production.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
| 1 |
{
|
| 2 |
-
"taskDefinitionArn": "arn:aws:ecs:ap-southeast-1:537124935427:task-definition/production-ourcoach-
|
| 3 |
"containerDefinitions": [
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
],
|
| 39 |
-
"family": "production-ourcoach-
|
| 40 |
"taskRoleArn": "arn:aws:iam::537124935427:role/ecsTaskExecutionRole",
|
| 41 |
"executionRoleArn": "arn:aws:iam::537124935427:role/ecsTaskExecutionRole",
|
| 42 |
"networkMode": "awsvpc",
|
|
@@ -44,47 +44,53 @@
|
|
| 44 |
"volumes": [],
|
| 45 |
"status": "ACTIVE",
|
| 46 |
"requiresAttributes": [
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
],
|
| 78 |
"placementConstraints": [],
|
| 79 |
-
"compatibilities": [
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
"cpu": "256",
|
| 82 |
"memory": "512",
|
| 83 |
"runtimePlatform": {
|
| 84 |
-
|
| 85 |
-
|
| 86 |
},
|
| 87 |
-
"registeredAt": "2024-10-
|
| 88 |
"registeredBy": "arn:aws:iam::537124935427:user/besher",
|
|
|
|
| 89 |
"tags": []
|
| 90 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"taskDefinitionArn": "arn:aws:ecs:ap-southeast-1:537124935427:task-definition/production-ourcoach-ai-core:1",
|
| 3 |
"containerDefinitions": [
|
| 4 |
+
{
|
| 5 |
+
"name": "ourcoach-ai-core",
|
| 6 |
+
"image": "537124935427.dkr.ecr.ap-southeast-1.amazonaws.com/production/ourcoach-ai-core",
|
| 7 |
+
"cpu": 256,
|
| 8 |
+
"memory": 512,
|
| 9 |
+
"portMappings": [
|
| 10 |
+
{
|
| 11 |
+
"name": "7860",
|
| 12 |
+
"containerPort": 7860,
|
| 13 |
+
"hostPort": 7860,
|
| 14 |
+
"protocol": "tcp",
|
| 15 |
+
"appProtocol": "http"
|
| 16 |
+
}
|
| 17 |
+
],
|
| 18 |
+
"essential": true,
|
| 19 |
+
"environment": [],
|
| 20 |
+
"environmentFiles": [],
|
| 21 |
+
"mountPoints": [],
|
| 22 |
+
"volumesFrom": [],
|
| 23 |
+
"ulimits": [],
|
| 24 |
+
"logConfiguration": {
|
| 25 |
+
"logDriver": "awslogs",
|
| 26 |
+
"options": {
|
| 27 |
+
"awslogs-group": "/ecs/production-ourcoach-ai-core",
|
| 28 |
+
"mode": "non-blocking",
|
| 29 |
+
"awslogs-create-group": "true",
|
| 30 |
+
"max-buffer-size": "25m",
|
| 31 |
+
"awslogs-region": "ap-southeast-1",
|
| 32 |
+
"awslogs-stream-prefix": "ecs"
|
| 33 |
+
},
|
| 34 |
+
"secretOptions": []
|
| 35 |
+
},
|
| 36 |
+
"systemControls": []
|
| 37 |
+
}
|
| 38 |
],
|
| 39 |
+
"family": "production-ourcoach-ai-core",
|
| 40 |
"taskRoleArn": "arn:aws:iam::537124935427:role/ecsTaskExecutionRole",
|
| 41 |
"executionRoleArn": "arn:aws:iam::537124935427:role/ecsTaskExecutionRole",
|
| 42 |
"networkMode": "awsvpc",
|
|
|
|
| 44 |
"volumes": [],
|
| 45 |
"status": "ACTIVE",
|
| 46 |
"requiresAttributes": [
|
| 47 |
+
{
|
| 48 |
+
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"name": "ecs.capability.execution-role-awslogs"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"name": "com.amazonaws.ecs.capability.ecr-auth"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.28"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "com.amazonaws.ecs.capability.task-iam-role"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"name": "ecs.capability.execution-role-ecr-pull"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"name": "ecs.capability.task-eni"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.29"
|
| 76 |
+
}
|
| 77 |
],
|
| 78 |
"placementConstraints": [],
|
| 79 |
+
"compatibilities": [
|
| 80 |
+
"EC2",
|
| 81 |
+
"FARGATE"
|
| 82 |
+
],
|
| 83 |
+
"requiresCompatibilities": [
|
| 84 |
+
"FARGATE"
|
| 85 |
+
],
|
| 86 |
"cpu": "256",
|
| 87 |
"memory": "512",
|
| 88 |
"runtimePlatform": {
|
| 89 |
+
"cpuArchitecture": "X86_64",
|
| 90 |
+
"operatingSystemFamily": "LINUX"
|
| 91 |
},
|
| 92 |
+
"registeredAt": "2024-10-31T06:16:27.129Z",
|
| 93 |
"registeredBy": "arn:aws:iam::537124935427:user/besher",
|
| 94 |
+
"enableFaultInjection": false,
|
| 95 |
"tags": []
|
| 96 |
+
}
|
.github/workflows/deploy-production.yml
CHANGED
|
@@ -15,9 +15,9 @@ jobs:
|
|
| 15 |
uses: ./.github/workflows/deployment.yml
|
| 16 |
with:
|
| 17 |
active_env: production
|
| 18 |
-
ecr_url: 537124935427.dkr.ecr.ap-southeast-1.amazonaws.com/production/ourcoach-
|
| 19 |
-
ecs_service: ourcoach-
|
| 20 |
ecs_cluster: ProductionECSCluster
|
| 21 |
ecs_task_definition: .aws/task-definition-production.json
|
| 22 |
-
container_name: ourcoach-
|
| 23 |
secrets: inherit
|
|
|
|
| 15 |
uses: ./.github/workflows/deployment.yml
|
| 16 |
with:
|
| 17 |
active_env: production
|
| 18 |
+
ecr_url: 537124935427.dkr.ecr.ap-southeast-1.amazonaws.com/production/ourcoach-ai-core
|
| 19 |
+
ecs_service: ourcoach-ai-core
|
| 20 |
ecs_cluster: ProductionECSCluster
|
| 21 |
ecs_task_definition: .aws/task-definition-production.json
|
| 22 |
+
container_name: ourcoach-ai-core
|
| 23 |
secrets: inherit
|