Skip to content

Commit 2c1045a

Browse files
author
Bart Koelman
authored
Converted starter script for docker tests to cross-platform powershell (#877)
1 parent 638a603 commit 2c1045a

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

prop-docker.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

run-docker-postgres.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#Requires -Version 7.0
2+
3+
# This script starts a docker container with postgres database, used for running tests.
4+
5+
docker container stop jsonapi-dotnet-core-testing
6+
7+
docker run --rm --name jsonapi-dotnet-core-testing `
8+
-e POSTGRES_DB=JsonApiDotNetCoreExample `
9+
-e POSTGRES_USER=postgres `
10+
-e POSTGRES_PASSWORD=postgres `
11+
-p 5432:5432 `
12+
postgres:12.0

0 commit comments

Comments
 (0)