brew install mkcert nss
mkcert -install
cd service-frontend
mkcert localhost
mkdir ./cache/dynamodb
docker compose -f docker/compose.yaml up -d --build
Set this IAM policy for SES.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SESSendEmail",
"Effect": "Allow",
"Action": ["ses:SendEmail", "ses:SendRawEmail"],
"Resource": "*"
}
]
}
On first time:
brew install awscli
aws configure --profile shortbook
# AWS Access Key ID [None]: xxxxxxxxxxxxxxxxx
# AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Default region name [None]: eu-west-1
# Default output format [None]: json
On every time:
docker buildx build --platform=linux/amd64 -f ./service-frontend/Dockerfile --target prd -t shortbook/service-frontend:(((VERSION_TAG))) . --progress=plain
aws ecr get-login-password --region eu-west-1 --profile shortbook | docker login --username AWS --password-stdin (((ACCOUNT_ID))).dkr.ecr.eu-west-1.amazonaws.com
docker tag shortbook/service-frontend:(((VERSION_TAG))) (((ACCOUNT_ID))).dkr.ecr.eu-west-1.amazonaws.com/shortbook/service-frontend:(((VERSION_TAG)))
docker tag shortbook/service-frontend:(((VERSION_TAG))) (((ACCOUNT_ID))).dkr.ecr.eu-west-1.amazonaws.com/shortbook/service-frontend:latest
docker push (((ACCOUNT_ID))).dkr.ecr.eu-west-1.amazonaws.com/shortbook/service-frontend:(((VERSION_TAG)))
docker push (((ACCOUNT_ID))).dkr.ecr.eu-west-1.amazonaws.com/shortbook/service-frontend:latest