docker run -p 3306:3306 --name devkit -e MYSQL_ROOT_PASSWORD=mypass -d mariadb
docker build -t matsskoglund/devkitapi:latest .
Will create and use internal sqlite db. I use Development mode for testing for the moment.
docker run -e ASPNETCORE_ENVIRONMENT=Staging --net=host -it -p 5000:5000 matsskoglund/devkitapi:latest
cd test
newman run DevkitApi.Test.postman_collection.json
docker network create devkitapinet
docker network ls
docker run --net=devkitapinet --name devkitapidb -e MYSQL_ROOT_PASSWORD=mypass -d mariadb
docker build -t matsskoglund/devkitapi:latest .
set DBCONNECTION=server=devkitapidb;userid=root;password=mypass;database=devkit;
docker run -e ASPNETCORE_ENVIRONMENT=Staging -e DBCONNECTION=%DBCONNECTION% --net=devkitapinet --name devkitapi -d -p 5000:5000 matsskoglund/devkitapi:latest
newman run https://raw.githubusercontent.com/matsskoglund/DevkitApi/master/test/DevkitApi.Test.postman_collection.json
docker stop devkitapidb
docker stop devkitapi
docker network prune -f