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:
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal 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
|
||||||
@@ -7,6 +7,9 @@ set -o errexit # exit on first error
|
|||||||
set -o nounset # exit on using unset variables
|
set -o nounset # exit on using unset variables
|
||||||
set -o pipefail # exit on any error in a pipeline
|
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
|
# Prompt user for inputs
|
||||||
echo "================================================"
|
echo "================================================"
|
||||||
echo "Bedrock Access Gateway - Build and Push to ECR"
|
echo "Bedrock Access Gateway - Build and Push to ECR"
|
||||||
|
|||||||
Reference in New Issue
Block a user