Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
1db7fb0
Adding container push and build code.
gregharvey Jun 22, 2023
b45c182
Fixing some minor issues.
gregharvey Jun 22, 2023
6211767
Docs updates and template flexibility improvement.
gregharvey Jun 22, 2023
3eecd60
Creating separate registry name for handling docker push.
gregharvey Jun 22, 2023
a794855
Trying to get the registry name right.
gregharvey Jun 22, 2023
6c6db26
Adding AWS stack components to ECS builds.
gregharvey Jun 27, 2023
21312cf
Force a docker logout.
gregharvey Jun 27, 2023
9005d12
Need to delegate docker commands to the controller.
gregharvey Jun 27, 2023
a609bfb
Trying deleting the credentials file instead.
gregharvey Jun 27, 2023
5990127
Fixing var name in subnet.yml.
gregharvey Jun 27, 2023
40b2687
Missing some ACM variables.
gregharvey Jun 27, 2023
d32257d
Allowing us to set wait timeout for TG creation.
gregharvey Jun 27, 2023
687ff13
Uncommenting cpu and memory vars for ECS with Fargate.
gregharvey Jun 27, 2023
3113716
Missed a variable in ELB creation.
gregharvey Jun 27, 2023
21ece99
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
904c512
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
a78b57a
Couple of linting fixes.
gregharvey Jun 27, 2023
d12e26a
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
a9162ba
Force building and tagging of containers as an option.
gregharvey Jun 27, 2023
6b58d32
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
dafb13b
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
1efac5b
Merge branch '1.x' into ecs_deployments
gregharvey Jun 27, 2023
2bfcb36
Improving docs for deploy_container role.
gregharvey Jun 27, 2023
9468890
Merge branch '1.x' into ecs_deployments
gregharvey Jun 27, 2023
627b2f1
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
5cae9e1
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 27, 2023
00e04f9
Providing container description example for ECS.
gregharvey Jun 29, 2023
5574faa
Adding 'force' option to docker builds.
gregharvey Jun 29, 2023
cde4845
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Jun 29, 2023
5b546c1
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 29, 2023
d0f02ed
Revert "Adding 'force' option to docker builds."
gregharvey Jun 29, 2023
d6a0aa5
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 29, 2023
47a4c7f
Adding options to force ECS component refreshes.
gregharvey Jun 29, 2023
fe9f1b6
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 29, 2023
177d689
Allowing users to toggle public IP and execute command mode.
gregharvey Jun 29, 2023
e535d3a
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Jun 29, 2023
be70493
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 29, 2023
6ac9b6a
The ALB needs to be on public subnets, not the same private ones as t…
gregharvey Jun 30, 2023
e4bdb44
Updating documentation.
gregharvey Jun 30, 2023
932501c
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Jun 30, 2023
5b3e5ec
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 30, 2023
65fb103
Updating ECS docs.
gregharvey Jun 30, 2023
8b7ba54
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Jun 30, 2023
6944d02
Merging 1.x
gregharvey Dec 20, 2023
4acd1da
New deploy_container destroy action.
gregharvey Dec 20, 2023
c15078a
Documentation update.
gregharvey Dec 20, 2023
7f3bb89
Merge branch '1.x' into ecs_deployments-PR-1.x
gregharvey Dec 20, 2023
edae3e5
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Dec 20, 2023
2cc01f1
Adding a note to docs about the container destroy action.
gregharvey Dec 20, 2023
b28643c
Merge branch 'ecs_deployments' into ecs_deployments-PR-1.x
gregharvey Dec 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/roles/cache_clear/cache_clear-opcache.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cache_clear_opcache:
# eg.
# --fcgi=127.0.0.1:9000
# Leave blank to use /etc/cachetool.yml
# adapter: "127.0.0.1:9081" # Leave commented to automatically detect the adapter based on PHP version.
# adapter: "--fcgi=127.0.0.1:9081" # Leave commented to automatically detect the adapter based on PHP version.
# Bins to clear.
clear_opcache: true
clear_apcu: false
Expand Down
1 change: 0 additions & 1 deletion docs/roles/database_backup/database_backup-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ mysql_backup:
credentials_file: "/home/{{ deploy_user }}/.mysql.creds"
#handling: static # optional override to the main handling method on a per database basis


```

<!--ENDROLEVARS-->
Expand Down
2 changes: 2 additions & 0 deletions docs/roles/deploy_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ deploy_code:
service_action: reload
# Trigger an API call to rebuild infra after a deploy, e.g. if you need to repack an AMI.
rebuild_infra: false
# Used to skip tasks to fix ownership and permissions, drupal needs this set to true by default
fix_cleanup_perms: true
# Details of API call to trigger. See api_call role.
api_call:
type: gitlab
Expand Down
5 changes: 4 additions & 1 deletion docs/roles/deploy_container.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ sudo usermod -aG docker deploy

This can be handled automatically by [`ce-provision`](https://github.com/codeenigma/ce-provision) using the `ce_deploy` and `docker_ce` roles.

If you set the `deploy_container.action` to `destroy` then the role will also take care of tidying up containers. If it is an AWS ECS deployment then it will also tidy up the ECS service for you.

## AWS IAM requirements
AWS integration requires the AWS CLI user provided for `ce-deploy` to have certain managed AWS policies attached.

Expand Down Expand Up @@ -41,6 +43,7 @@ It is worth noting that even if you put your containers on private subnets and c
```yaml
---
deploy_container:
action: create # can also be destroy
container_name: example-container
container_tag: latest # tag will take format container_name:container_tag
container_force_build: true # force Docker to build and tag a new image
Expand Down Expand Up @@ -109,7 +112,7 @@ deploy_container:
launch_type: FARGATE
network_mode: awsvpc
#volumes: [] # list of additional volumes to attach
target_group_name: example # 32 character limit
target_group_name: example # can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen
target_group_protocol: http
target_group_port: 8080 # ports lower than 1024 will require the app to be configured to run as a privileged user in the Dockerfile
target_group_wait_timeout: 200 # how long to wait for target group events to complete
Expand Down
2 changes: 1 addition & 1 deletion roles/cache_clear/cache_clear-opcache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cache_clear_opcache:
# eg.
# --fcgi=127.0.0.1:9000
# Leave blank to use /etc/cachetool.yml
# adapter: "127.0.0.1:9081" # Leave commented to automatically detect the adapter based on PHP version.
# adapter: "--fcgi=127.0.0.1:9081" # Leave commented to automatically detect the adapter based on PHP version.
# Bins to clear.
clear_opcache: true
clear_apcu: false
Expand Down
1 change: 0 additions & 1 deletion roles/database_backup/database_backup-mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ mysql_backup:
credentials_file: "/home/{{ deploy_user }}/.mysql.creds"
#handling: static # optional override to the main handling method on a per database basis


```

<!--ENDROLEVARS-->
Expand Down
2 changes: 2 additions & 0 deletions roles/deploy_code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ deploy_code:
service_action: reload
# Trigger an API call to rebuild infra after a deploy, e.g. if you need to repack an AMI.
rebuild_infra: false
# Used to skip tasks to fix ownership and permissions, drupal needs this set to true by default
fix_cleanup_perms: true
# Details of API call to trigger. See api_call role.
api_call:
type: gitlab
Expand Down
5 changes: 4 additions & 1 deletion roles/deploy_container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ sudo usermod -aG docker deploy

This can be handled automatically by [`ce-provision`](https://github.com/codeenigma/ce-provision) using the `ce_deploy` and `docker_ce` roles.

If you set the `deploy_container.action` to `destroy` then the role will also take care of tidying up containers. If it is an AWS ECS deployment then it will also tidy up the ECS service for you.

## AWS IAM requirements
AWS integration requires the AWS CLI user provided for `ce-deploy` to have certain managed AWS policies attached.

Expand Down Expand Up @@ -41,6 +43,7 @@ It is worth noting that even if you put your containers on private subnets and c
```yaml
---
deploy_container:
action: create # can also be destroy
container_name: example-container
container_tag: latest # tag will take format container_name:container_tag
container_force_build: true # force Docker to build and tag a new image
Expand Down Expand Up @@ -109,7 +112,7 @@ deploy_container:
launch_type: FARGATE
network_mode: awsvpc
#volumes: [] # list of additional volumes to attach
target_group_name: example # 32 character limit
target_group_name: example # can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen
target_group_protocol: http
target_group_port: 8080 # ports lower than 1024 will require the app to be configured to run as a privileged user in the Dockerfile
target_group_wait_timeout: 200 # how long to wait for target group events to complete
Expand Down
1 change: 1 addition & 0 deletions roles/deploy_container/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
deploy_container:
action: create # can also be destroy
container_name: example-container
container_tag: latest # tag will take format container_name:container_tag
container_force_build: true # force Docker to build and tag a new image
Expand Down
3 changes: 3 additions & 0 deletions roles/deploy_container/tasks/action-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
# @TODO we need container image cleanup here and potentially ECS Task Definition cleanup too.
# Possibly useful link: https://stackoverflow.com/a/40949364
Loading