fix: Allow the push-to-ecr.sh script to run from anywhere instead of requiring the user to cd manually (#202)

* fix: Allow the push-to-ecr.sh script to run from anywhere instead of requiring the user to cd manually

* Add docker-compose to support running locally
This commit is contained in:
Justin Dray
2025-11-19 22:33:43 -08:00
committed by GitHub
parent b3c1c82367
commit 37374e79ba
2 changed files with 21 additions and 0 deletions

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: '3.8'
services:
bedrock-access-gateway:
build:
context: ./src
dockerfile: Dockerfile_ecs
ports:
- "127.0.0.1:8000:8080"
environment:
- ENABLE_PROMPT_CACHING=true
- API_KEY=${OPENAI_API_KEY}
- AWS_PROFILE
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
volumes:
- ${HOME}/.aws:/home/appuser/.aws

View File

@@ -7,6 +7,9 @@ set -o errexit # exit on first error
set -o nounset # exit on using unset variables
set -o pipefail # exit on any error in a pipeline
# Change to the directory where the script is located
cd "$(dirname "$0")"
# Prompt user for inputs
echo "================================================"
echo "Bedrock Access Gateway - Build and Push to ECR"