You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
576 B
23 lines
576 B
# export POSTGRES_DB=codegen_db
|
|
export CODEGEN_DB_HOST=localhost
|
|
export CODEGEN_DB_NAME=codegen_db
|
|
export CODEGEN_DB_USER=codegen_user
|
|
export CODEGEN_DB_PASSWORD=password
|
|
export CODEGEN_DB_PORT=5435
|
|
|
|
cid=$(docker run \
|
|
-e POSTGRES_DB=$CODEGEN_DB_NAME \
|
|
-e POSTGRES_USER=$CODEGEN_DB_USER \
|
|
-e POSTGRES_PASSWORD=$CODEGEN_DB_PASSWORD \
|
|
-p $CODEGEN_DB_PORT:5432 \
|
|
-d postgres:12)
|
|
|
|
echo "Container id is $cid"
|
|
sleep 5s
|
|
# ./wait-for-it.sh localhost:5434 -s -t 300 -- echo "db started"
|
|
sbtn flyway/flywayMigrate
|
|
sbtn docker:publishLocal
|
|
sbtn shutdown
|
|
|
|
docker stop $cid
|
|
docker rm $cid
|