Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.01 KB

frontend.md

File metadata and controls

46 lines (32 loc) · 1.01 KB

Frontend APP Documentation

Navigate to frontend directory

Local Setup

  • Create and fill the env file

    touch .env
    copy env_copy .env
  • To Build Frontend APPP

    docker build -f dockerfiles/Dockerfile.frontend -t optiver-frontend-app .
  • To run the Optiver Frontend APP

    docker run -d --env-file $(pwd)/.env -p 80:80 --name frontend-app optiver-frontend-app

Pushing image to ECR

  • Create a ECR Repository using AWS console

  • Change "AWS_ECR_REPO_URI" and "ECR_REPO_NAME" variables in ecr_push.sh according to your configuration

  • Push the image to ECR

    sh ecr_push.sh <local_image_name> <ecr_version>
  • Example

    sh ecr_push.sh optiver-frontend-app v1

Deploy ECS Tasks and Services

  • Create or chose an existing cluster
  • Create a ECS Fargate Tasks with the container image and environment variables
  • Deploy the task as ECS Service
  • Configure Security Groups and Load Balancer to route traffic