Skip to content

Commit

Permalink
Download, get and mount 💾 .sql data (empty)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezzsim committed Dec 14, 2023
1 parent 03dd13b commit 0551a63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion continuous_integration/scripts/start_postgres.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e

docker run -d --rm --name tiled-test-postgres -p 5432:5432 -e POSTGRES_PASSWORD=secret -d docker.io/postgres
# Try and get the latest postgres test data from the tiled-example-database repository
wget https://github.com/bluesky/tiled-example-database/releases/latest/download/tiled_test_db_pg.sql

docker run -d --rm --name tiled-test-postgres -p 5432:5432 -e POSTGRES_PASSWORD=secret -v tiled_test_db_pg.sql:/docker-entrypoint-initdb.d/tiled_test_db_pg.sql -d docker.io/postgres
docker ps

0 comments on commit 0551a63

Please sign in to comment.