Skip to content

Commit ea5518a

Browse files
authored
Merge pull request #2 from sevenpark/codeship_fix
2 parents c9b6df6 + bbc5bf8 commit ea5518a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ops/aws_deployment.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ aws --version
1010

1111
#for COMMAND in "api" "rq" "unicorn"
1212

13-
jinja2 /deploy/ops/tasks/${ENV}/task_def.json.j2 -D branch=${CI_BRANCH} -D env=${ENV} -D command=${COMMAND} >/task_def_${COMMAND}.json
13+
jinja2 /deploy/ops/tasks/${ENV}/task_def.json.j2 -D branch=${CI_BRANCH} -D env=${ENV} >/task_def_kepler.json
1414

15-
cat task_def_${COMMAND}.json
15+
cat task_def_kepler.json
1616

1717
# Register a new version of the task defined in json and update
1818
# the currently running instances
19-
aws ecs register-task-definition --cli-input-json file:///task_def_${COMMAND}.json
19+
aws ecs register-task-definition --cli-input-json file:///task_def_kepler.json
2020

21-
aws ecs update-service --cluster seven-park-${ENV} --service distro-${COMMAND}-${ENV}-service --task-definition distro-${COMMAND}-${ENV}-td
21+
aws ecs update-service --cluster seven-park-${ENV} --service kepler-${ENV}-service --task-definition kepler-${ENV}-td

ops/tasks/prod/task_def.json.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@
2424
}
2525
],
2626
"mountPoints": [],
27-
"memory": 2048,
27+
"memory": 8192,
2828
"volumesFrom": [],
2929
"image": "084888172679.dkr.ecr.us-east-1.amazonaws.com/kepler:{{branch}}",
3030
"essential": true,
3131
"name": "kepler_{{env}}"
3232
}
3333
],
3434
"executionRoleArn": "arn:aws:iam::084888172679:role/7p-kepler-{{env}}-ecs",
35-
"taskRoleArn": "arn:aws:iam::084888172679:role/7p-kepler-{{command}}-{{env}}-ecs",
35+
"taskRoleArn": "arn:aws:iam::084888172679:role/7p-kepler-{{env}}-ecs",
3636
"family": "kepler-{{env}}-td",
3737
"networkMode": "awsvpc",
3838
"placementConstraints": [],
3939
"requiresCompatibilities": [
4040
"FARGATE"
4141
],
4242
"cpu": "1024",
43-
"memory": "2048"
43+
"memory": "4096"
4444
}

0 commit comments

Comments
 (0)