Skip to content

Commit dd9adf0

Browse files
author
Piotr Krukowiecki
committed
Add scripts to run in docker and compile locally
1 parent 3dcf91d commit dd9adf0

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

scripts/runInDocker.bat

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
docker build --pull --rm -t webgoat.net .
3+
docker run --rm -d -p 5000:80 --name webgoat.net webgoat.net
4+
5+
@echo.
6+
@echo Open http://localhost:5000 to access WebGoat.Net website
7+
@echo To stop docker container run: docker stop webgoat.net

scripts/runInDocker.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
docker build --pull --rm -t webgoat.net .
3+
docker run --rm -d -p 5000:80 --name webgoat.net webgoat.net
4+
5+
echo
6+
echo Open http://localhost:5000 to access WebGoat.Net website
7+
echo To stop docker container run: docker stop webgoat.net

scripts/runLocal.bat

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
dotnet publish -c release -o ./app
3+
dotnet ./app/WebGoatCore.dll --urls=http://localhost:5000

scripts/runLocal.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
dotnet publish -c release -o ./app
3+
dotnet ./app/WebGoatCore.dll --urls=http://localhost:5000

0 commit comments

Comments
 (0)