💡
deploydocs
  • Introduction
  • Going Live: Checklist : CARE
  • CARE: CLOUD DEPLOYMENT OVERVIEW
    • Cloud Infrastructure Diagram
    • Google Cloud deployment
      • Set up the network
      • Set up Databases
      • Create storage buckets
      • Create a GKE cluster
      • Configure GKE workloads
      • Post setup
    • Azure Deployment
    • AWS Deployment
  • CARE: Deploying Technology
  • Tech Overview: CARE
  • Tech Prerequisites: CARE
  • Setting up the server locally
  • Setting up AWS EKS
  • Setting up AWS RDS
  • Build and push docker image
  • Production Environment Variables
  • Deploying the projects on EKS
  • Requirements: AWS
  • Tech Infrastructure: CARE
  • Steps to Deploy: CARE
  • CARE: Deploying Operations
  • Operationalizing CARE in the field
  • Setting up the War-Room
  • Deployment Timeline
  • Ambulance Management System
    • SuperHero Network
  • TeleICU Tech Deployment
    • Setup Nursing Station Desktop
    • BPL Monitor Network Configuration
Powered by GitBook
On this page
  • Build image
  • Push the image to AWS ECR

Was this helpful?

Export as PDF

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.

PreviousSetting up AWS RDSNextProduction Environment Variables

Last updated 3 years ago

Was this helpful?