Skip to content

Commit

Permalink
refactor: Update test-setup.sh to export environment variables and st…
Browse files Browse the repository at this point in the history
…art PostgreSQL in docker-compose
  • Loading branch information
simlarsen committed Aug 8, 2024
1 parent 0ef7ca9 commit 3c20f42
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Common/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@ sed -i 's/.*REDIS_PORT.*/REDIS_PORT=6379/' config.env
sed -i 's/.*REDIS_DB.*/REDIS_DB=0/' config.env
sed -i 's/.*REDIS_USERNAME.*/REDIS_USERNAME=default/' config.env

export $(grep -v '^#' config.env | xargs) && docker compose -f docker-compose.dev.yml up -d postgres
# print config.env file
echo "config.env file"
cat config.env

export $(grep -v '^#' config.env | xargs)

# print env vars
echo "env vars"
printenv

docker compose -f docker-compose.dev.yml up -d postgres

0 comments on commit 3c20f42

Please sign in to comment.