diff --git a/prop-docker.sh b/prop-docker.sh deleted file mode 100755 index b18a8b8d54..0000000000 --- a/prop-docker.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -docker run --rm --name jsonapi-dotnet-core-testing \ - -e POSTGRES_DB=JsonApiDotNetCoreExample \ - -e POSTGRES_USER=postgres \ - -e POSTGRES_PASSWORD=postgres \ - -p 5432:5432 \ - postgres diff --git a/run-docker-postgres.ps1 b/run-docker-postgres.ps1 new file mode 100644 index 0000000000..fb7e448e0a --- /dev/null +++ b/run-docker-postgres.ps1 @@ -0,0 +1,12 @@ +#Requires -Version 7.0 + +# This script starts a docker container with postgres database, used for running tests. + +docker container stop jsonapi-dotnet-core-testing + +docker run --rm --name jsonapi-dotnet-core-testing ` + -e POSTGRES_DB=JsonApiDotNetCoreExample ` + -e POSTGRES_USER=postgres ` + -e POSTGRES_PASSWORD=postgres ` + -p 5432:5432 ` + postgres:12.0