Skip to content

Commit d37d32e

Browse files
committed
misc: Add Unix shell scripts
1 parent 283c286 commit d37d32e

14 files changed

+26
-22
lines changed

Docker-Build.cmd

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
docker-compose build

Docker-Build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
docker-compose build

DockerRun-Sample-Blazor.cmd

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
@echo off
2-
docker-compose build
3-
4-
start "Samples.Blazor.Server (Docker)" docker-compose up sample_blazor
5-
timeout 3
6-
start http://localhost:5005/
2+
start cmd /C timeout 3 ^& start http://localhost:5005/"
3+
docker-compose run sample_blazor

DockerRun-Sample-Blazor.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
(sleep 3; xdg-open http://localhost:5005/) &
3+
docker-compose run sample_blazor

DockerRun-Sample-Caching.cmd

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
@echo off
2-
docker-compose build
3-
42
docker-compose run sample_caching_client dotnet Samples.Caching.Client.dll

DockerRun-Sample-Caching.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
docker-compose run sample_caching_client dotnet Samples.Caching.Client.dll
+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
@echo off
2-
docker-compose build
3-
4-
start "Samples.HelloBlazorServer (Docker)" docker-compose up sample_hello_blazor_server
5-
timeout 3
6-
start http://localhost:5000/
2+
start cmd /C timeout 3 ^& start http://localhost:5000/"
3+
docker-compose run sample_hello_blazor_server

DockerRun-Sample-HelloBlazorServer.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
(sleep 3; xdg-open http://localhost:5000/) &
3+
docker-compose run sample_hello_blazor_server

DockerRun-Sample-HelloWorld.cmd

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
@echo off
2-
docker-compose build
3-
42
docker-compose run sample_hello_world dotnet Samples.HelloWorld.dll

DockerRun-Sample-HelloWorld.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
docker-compose run sample_hello_world dotnet Samples.HelloWorld.dll

DockerRun-Tutorial.cmd

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
@echo off
2-
docker-compose build
3-
4-
start "Tutorial (Docker)" docker-compose up tutorial
5-
timeout 5
6-
start https://localhost:50005/README.md
2+
start cmd /C timeout 3 ^& start https://localhost:50005/README.md"
3+
docker-compose run tutorial

DockerRun-Tutorial.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
(sleep 3; xdg-open https://localhost:50005/README.md) &
3+
docker-compose run tutorial

Run-Sample-Blazor.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ dotnet build
33

44
rem The next line is optional - you need it if you want to debug Blazor client
55
set ASPNETCORE_ENVIRONMENT=Development
6-
start "Blazor Sample" dotnet run -f net5.0 -p src/Blazor/Server/Server.csproj
7-
start http://localhost:5005/
6+
start cmd /C timeout 3 ^& start http://localhost:5005/"
7+
dotnet run -f net5.0 -p src/Blazor/Server/Server.csproj

Run-Tutorial.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
2-
32
dotnet build
3+
44
pushd docs/tutorial
55
dotnet try --port 50005
66
popd

0 commit comments

Comments
 (0)