#!/usr/bin/env bash

# First we need to execute sbt-docker
sbt dockerize

# Then we need to create the pg-data directory to be mounted as a volume in docker up
mkdir -p pg-data

# Then we run docker compose up to launch the database container
docker-compose -f docker-compose.yml up glance-eval-db

# run flyway migrations
eval "$(cat .env)"
sbt -Dflyway.password=$GLANCE_DB_PASS -Dflyway.user=$GLANCE_DB_USER -Dflyway.url="jdbc:postgresql://glance-eval-db:8003/$(GLANCE_DB_NAME)" "glance-coreJVM/flywayMigrate"

docker-compose -f docker-compose.yml up

#!/usr/bin/env bash

# First we need to execute sbt-docker
sbt dockerize

# Then we need to create the pg-data directory to be mounted as a volume in docker up
mkdir -p pg-data

# Then we run docker compose up to launch the database container
docker-compose up glance-eval-db

# run flyway migrations
eval "$(cat .env)"
sbt -Dflyway.password=$GLANCE_DB_PASS -Dflyway.user=$GLANCE_DB_USER -Dflyway.url="jdbc:postgresql://glance-eval-db:8003/$(GLANCE_DB_NAME)" "glance-coreJVM/flywayMigrate"

docker-compose up

Update to one click build
Update to one click build
