Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build the docker containers in CircleCI #128

Closed
hortongn opened this issue Feb 19, 2021 · 1 comment
Closed

Build the docker containers in CircleCI #128

hortongn opened this issue Feb 19, 2021 · 1 comment
Assignees

Comments

@hortongn
Copy link
Member

Our current CircleCI config just runs the app in CircleCI's ruby image. We ant to make sure that CircleCI can also build our own Docker containers so we will know if there's a problem with our builds.

@hortongn hortongn added this to the Version 1.0 chores milestone Feb 19, 2021
@bhanutejags
Copy link
Contributor

bhanutejags commented Feb 23, 2021

Related Links from Circle CI Documentation

Building Docker Images

Testing/Validating Circle CI Jobs Locally

CircleCI: CI/CD

Orbs for AWS

Notes about AWS CLI

apk add py3-pip=20.1.1-r0
pip install awscli>=1.0
  • The images provided by Circle CI for building Docker images, seem to be based out of Alpine, but installing AWS CLI v2 might be a bit tricky, given that Alpine uses Musl, and AWS CLI v2 is compiled against glibc.
  • But it does seem like we can run prebuilt images of AWS CLI v2 within Circle CI, and use them for any AWS related activities in the job, the usage would be something like:
docker run --rm -it -e AWS_ACCESS_KEY_ID="" -e AWS_DEFAULT_REGION="" -e AWS_SECRET_ACCESS_KEY="" amazon/aws-cli ecr get-login-password

Cleaning up older images automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants