forked from datalytyx/dlx-test-sources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_all_databases.sh
executable file
·31 lines (18 loc) · 1.08 KB
/
create_all_databases.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
cd ..
cd postgres-flex
SOURCE=adventureworks
DB_VERSION=9.6 && PORT=6000
CONTAINER_NAME=postgres$DB_VERSION-$SOURCE && IMAGE_NAME=postgres:$DB_VERSION && docker run -d --name $CONTAINER_NAME -e POSTGRES_USER=datalytyx -e POSTGRES_PASSWORD=horsewelltree -e POSTGRES_DB=datalytyx -p $PORT:5432 -v $(pwd)/$SOURCE:/docker-entrypoint-initdb.d $IMAGE_NAME
SOURCE=sakila
DB_VERSION=9.6 && PORT=6100
CONTAINER_NAME=postgres$DB_VERSION-$SOURCE && IMAGE_NAME=postgres:$DB_VERSION && docker run -d --name $CONTAINER_NAME -e POSTGRES_USER=datalytyx -e POSTGRES_PASSWORD=horsewelltree -e POSTGRES_DB=datalytyx -p $PORT:5432 -v $(pwd)/$SOURCE:/docker-entrypoint-initdb.d $IMAGE_NAME
cd ..
cd mssql-2017
docker build -t datalytyx:mssql2017-adventureworks .
docker run -e 'SA_PASSWORD=Horsewelltr33' -p 7000:1433 -d -it --name mssql2017-adventureworks datalytyx:mssql2017-adventureworks
cd ..
cd mssql-2019
docker build -t datalytyx:mssql2019-adventureworks .
docker run -e 'SA_PASSWORD=Horsewelltr33' -p 7001:1433 -d -it --name mssql2019-adventureworks datalytyx:mssql2019-adventureworks
cd ..