8000 Added 0.50.0 version · hjerpbakk/dotnet-script-docker@2282d8f · GitHub
[go: up one dir, main page]

Skip to content

Commit 2282d8f

Browse files
committed
Added 0.50.0 version
1 parent 2dafff3 commit 2282d8f

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
.DS_Store

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-alpine
22

33
RUN dotnet tool install -g dotnet-script
44

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ This is a [Docker image](https://hub.docker.com/r/hjerpbakk/dotnet-script/) cont
77

88
## Runing scripts
99

10-
Example, shows the version of the dotnet script, 0.30.0 at the time of writing:
10+
Example, shows the version of the dotnet script, 0.50.0 at the time of writing:
1111

1212
```shell
1313
docker run --rm -it hjerpbakk/dotnet-script --version
1414

15-
0.30.0
15+
0.50.0
1616
```
1717

1818
Running the script `foo.csx` with one argument:
@@ -31,4 +31,4 @@ Standing in this folder, use the following command to build the image locally:
3131
docker build -t hjerpbakk/dotnet-script:tag .
3232
```
3333

34-
Where `:tag` is an optioanl version number, lik CEA9 e `:0.30.0`.
34+
Where `:tag` is an optional version number, like `:0.50.0`.

test.csx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Console.WriteLine(Args[0]);

test.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
docker build -t hjerpbakk/dotnet-script-local:0.50.0 .
3+
4+
ARGUMENT="42"
5+
RESULT=$(docker run --rm -it --volume="$PWD:/scripts:ro" hjerpbakk/dotnet-script-local:0.50.0 test.csx -- "$ARGUMENT" | tr -d '\r' | tr -d '[?1h=')
6+
7+
if [ "$RESULT" = "$ARGUMENT" ]; then
8+
echo "dotnet-script ran successfully";
9+
exit;
10+
fi
11+
12+
echo "dotnet-script failed. Expected:"
13+
echo "$ARGUMENT"
14+
echo "but got:"
15+
echo "$RESULT"
16+
exit 1;

0 commit comments

Comments
 (0)
0