#!/bin/bash echo "---- Load Dummy Data -----" echo "Username: $1" echo "Password: $2" echo "Host: $3" echo "DB: $4" echo "--------------------------" echo "Install Adventureworks for Postgres" cd /tmp wget -q https://github.com/lorint/AdventureWorks-for-Postgres/archive/master.zip unzip master.zip cd AdventureWorks-for-Postgres-master/ wget -q https://github.com/microsoft/sql-server-samples/releases/download/adventureworks/AdventureWorks-oltp-install-script.zip unzip AdventureWorks-oltp-install-script.zip ruby update_csvs.rb psql postgresql://$1:$2@$3/$4?sslmode=require -c "CREATE DATABASE \"Adventureworks\";" psql postgresql://$1:$2@$3/Adventureworks?sslmode=require < ./install.sql rm -fr /tmp/AdventureWorks-for-Postgres