Docker build files for services managed by devops
aws ecr get-login-password --region us-east-1 [--profile prod|dev] | docker login --username AWS --password-stdin {$aws_account_id}.dkr.ecr.us-east-1.amazonaws.com
To make use of this image, include the following in the task definition, changing the config-file-value as needed for your application
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"config-file-type": "file",
"config-file-value": "/elastic.conf"
}
},
- base.conf: configures baseline options
- elastic.conf: ships logs to a cloudwatch log stream and elastic cloud endpoint with env vars to config host, username, password and index.
There are two primary workflows here:
dockerhub-publish.yml
public-ecr-publish.yml
Self-explanatory: publishes a container to our public Docker Hub repo based on a git tag.
There are limits on pulls, so we have migrated away from this as the primary endpoint.
This workflow leverages AWS IAM roles and policies to publish a SHA
-tagged and latest
-tagged image to public repos within AWS ECR.
There is a build matrix for aws-region
that will allow for pushing to other regions as we expand the AWS infrastructure to those regions.