1
1
Write-Output " Downloading AdventureWorks2008R2FullDatabaseBackup"
2
2
New-Item - Path ' ./zip' - ItemType Directory - Force
3
3
(New-Object System.Net.WebClient).DownloadFile(" https://github.com/raczeja/DBTestCompare_backups/raw/master/AdventureWorks2008R2FullDatabaseBackup.zip" , " ./zip/AdventureWorks2008R2FullDatabaseBackup.zip" )
4
+ Invoke-WebRequest - Uri " https://github.com/raczeja/DBTestCompare_backups/raw/master/AdventureWorks2008R2FullDatabaseBackup.zip" - OutFile " ./zip/AdventureWorks2008R2FullDatabaseBackup.zip"
4
5
Write-Output " Unzipping AdventureWorks2008R2FullDatabaseBackup"
5
6
Expand-Archive - LiteralPath ' ./zip/AdventureWorks2008R2FullDatabaseBackup.zip' - DestinationPath ./ docker - Force
6
7
7
8
Write-Output " Downloading sqljdbc drivers"
8
- ( New-Object System.Net.WebClient).DownloadFile( " https://download.microsoft.com/download/4/0/8/40815588-bef6-4715-bde9-baace8726c2a/sqljdbc_8.2.0.0_enu.zip" , " ./zip/sqljdbc_8.2.0.0_enu.zip" )
9
+ Invoke-WebRequest - Uri " https://download.microsoft.com/download/4/0/8/40815588-bef6-4715-bde9-baace8726c2a/sqljdbc_8.2.0.0_enu.zip" - OutFile " ./zip/sqljdbc_8.2.0.0_enu.zip"
9
10
Write-Output " Unzipping sqljdbc drivers"
10
11
Expand-Archive - LiteralPath ' ./zip/sqljdbc_8.2.0.0_enu.zip' - DestinationPath " ./zip/sqljdbc" - Force
11
12
Copy-Item - Path " ./zip/sqljdbc/sqljdbc_8.2/enu/*" - Destination " ./jdbc_drivers" - Include " mssql-jdbc-*.jar"
12
13
13
14
Write-Output " Downloading mysql sctipts"
14
- ( New-Object System.Net.WebClient).DownloadFile( " https://github.com/raczeja/DBTestCompare_backups/raw/master/my-mysql/sql-scripts/sql-scripts.zip" , " ./zip/sql-scripts-mysql.zip" )
15
+ Invoke-WebRequest - Uri " https://github.com/raczeja/DBTestCompare_backups/raw/master/my-mysql/sql-scripts/sql-scripts.zip" - OutFile " ./zip/sql-scripts-mysql.zip"
15
16
Write-Output " Unzipping mysql sctipts"
16
17
Expand-Archive - LiteralPath ' ./zip/sql-scripts-mysql.zip' - DestinationPath " ./docker/my-mysql/sql-scripts" - Force
17
18
18
19
Write-Output " Downloading postgres sctipts"
19
- ( New-Object System.Net.WebClient).DownloadFile( " https://github.com/raczeja/DBTestCompare_backups/raw/master/my-postgres/sql-scripts/sql-scripts.zip" , " ./zip/sql-scripts-postgres.zip" )
20
+ Invoke-WebRequest - Uri " https://github.com/raczeja/DBTestCompare_backups/raw/master/my-postgres/sql-scripts/sql-scripts.zip" - OutFile " ./zip/sql-scripts-postgres.zip"
20
21
Write-Output " Unzipping postgres sctipts"
21
22
Expand-Archive - LiteralPath ' ./zip/sql-scripts-postgres.zip' - DestinationPath " ./docker/my-postgres/sql-scripts" - Force
0 commit comments