Build and push docker image
Our EKS deployment consists of running containers with docker images of the care project. The images will be served from a private container registry service provided by AWS called Elastic Container Registry (ECR). To setup the repositories for your care frontend and backend images, head over to AWS ECR console and create a new repository each for the backend and frontend.
Build image
To build the docker image of the care project, first clone the repositories:
$ git clone https://github.com/coronasafe/care
$ git clone https://github.com/coronasafe/care_fe
Inside the directory of the project you want to build, use the docker build command for building your required images.
Eg.: If you are in the backend folder, run $ docker build -t care:latest .
After the creation of the image, you can verify it by running $ docker images
The following branches are used for dev and production
Care Backend ( care ) :
master -> Development Branch
production -> Stable Production Branch
Care Fron End ( care_fe )
develop -> Development Branch
master -> Stable Production Branch
Always use stable production builds in production, Keep the fork in sync every 3 days.
Always merge the development branch and test before merging production.
Push the image to AWS ECR
Visit the ECR console.
Select the repository you want to push your image to.
On the top right corner, you should be able to find
View push commands
Follow the steps there to push your docker image to AWS ECR.
Last updated