Skip to content

Commit e5d7777

Browse files
authored
Merge pull request #492 from datacamp/fix/ecs-json
chore: update ecs containerURI
2 parents 9f3de48 + 03de8d9 commit e5d7777

1 file changed

Lines changed: 64 additions & 63 deletions

File tree

ecs.json

Lines changed: 64 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,69 @@
11
{
2-
"services": [{
3-
"cluster": "datacamp-services",
4-
"serviceName": "rdoc-app",
5-
"serviceProtocol": "none",
6-
"desiredCount": 1,
7-
"deployment": {
8-
"parameters": {
9-
"slackChannel": "comm-deploys",
10-
"customMessage": "Deploying ${CIRCLE_BUILD_URL}"
11-
}
2+
"services": [
3+
{
4+
"cluster": "datacamp-services",
5+
"serviceName": "rdoc-app",
6+
"serviceProtocol": "none",
7+
"desiredCount": 1,
8+
"deployment": {
9+
"parameters": {
10+
"slackChannel": "comm-deploys",
11+
"customMessage": "Deploying ${CIRCLE_BUILD_URL}"
12+
}
13+
},
14+
"loadBalancer": "datacamp-rdocumentation",
15+
"containers": [
16+
{
17+
"containerName": "rdoc-app",
18+
"containerURI": "708371444347.dkr.ecr.us-east-1.amazonaws.com/rdoc-app:${CIRCLE_SHA1}",
19+
"containerPort": 1337,
20+
"memoryReservation": 256,
21+
"essential": true,
22+
"healthCheck": {
23+
"command": [
24+
"CMD-SHELL",
25+
"curl -f http://localhost:1337/status || exit 1"
26+
],
27+
"interval": 60,
28+
"startPeriod": 120
29+
},
30+
"dockerLabels": {
31+
"com.datadoghq.ad.instances": "[{ \"name\": \"service_check\", \"url\": \"http://%%host%%:%%port%%/status\", \"tags\": [\"service:rdoc-app\"], \"allow_redirects\": false }]",
32+
"com.datadoghq.ad.check_names": "[\"http_check\"]",
33+
"com.datadoghq.ad.init_configs": "[{}]"
34+
}
35+
}
36+
]
1237
},
13-
"loadBalancer": "datacamp-rdocumentation",
14-
"containers": [
15-
{
16-
"containerName": "rdoc-app",
17-
"containerImage": "rdoc-app",
18-
"containerTag": "${CIRCLE_SHA1}",
19-
"containerPort": 1337,
20-
"memoryReservation": 256,
21-
"essential": true,
22-
"healthCheck": {
23-
"command": [
24-
"CMD-SHELL",
25-
"curl -f http://localhost:1337/status || exit 1"
26-
],
27-
"interval": 60,
28-
"startPeriod": 120
38+
{
39+
"cluster": "datacamp-services",
40+
"serviceName": "rdoc-app-worker",
41+
"serviceProtocol": "none",
42+
"desiredCount": 1,
43+
"loadBalancer": "datacamp-services-internal",
44+
"containers": [
45+
{
46+
"containerName": "rdoc-app-worker",
47+
"containerImage": "rdoc-app",
48+
"containerTag": "${CIRCLE_SHA1}",
49+
"containerPort": 1337,
50+
"memoryReservation": 4000,
51+
"cpu": 256,
52+
"essential": true
2953
},
30-
"dockerLabels": {
31-
"com.datadoghq.ad.instances": "[{ \"name\": \"service_check\", \"url\": \"http://%%host%%:%%port%%/status\", \"tags\": [\"service:rdoc-app\"], \"allow_redirects\": false }]",
32-
"com.datadoghq.ad.check_names": "[\"http_check\"]",
33-
"com.datadoghq.ad.init_configs": "[{}]"
54+
{
55+
"containerName": "rdoc-app-sqsd",
56+
"containerImage": "sqsd",
57+
"containerTag": "latest",
58+
"memoryReservation": 128,
59+
"essential": true,
60+
"containerCommand": [
61+
"bash",
62+
"-c",
63+
"eval $(aws-env) && node run-cli.js"
64+
]
3465
}
35-
}
36-
]
37-
},
38-
{
39-
"cluster": "datacamp-services",
40-
"serviceName": "rdoc-app-worker",
41-
"serviceProtocol": "none",
42-
"desiredCount": 1,
43-
"loadBalancer": "datacamp-services-internal",
44-
"containers": [
45-
{
46-
"containerName": "rdoc-app-worker",
47-
"containerImage": "rdoc-app",
48-
"containerTag": "${CIRCLE_SHA1}",
49-
"containerPort": 1337,
50-
"memoryReservation": 4000,
51-
"cpu": 256,
52-
"essential": true
53-
},
54-
{
55-
"containerName": "rdoc-app-sqsd",
56-
"containerImage": "sqsd",
57-
"containerTag": "latest",
58-
"memoryReservation": 128,
59-
"essential": true,
60-
"containerCommand": [
61-
"bash",
62-
"-c",
63-
"eval $(aws-env) && node run-cli.js"
64-
]
65-
}
66-
]
67-
}]
66+
]
67+
}
68+
]
6869
}

0 commit comments

Comments
 (0)