diff --git a/environments/dotnet20/README.md b/environments/dotnet20/README.md index 907c8906..889c94ea 100644 --- a/environments/dotnet20/README.md +++ b/environments/dotnet20/README.md @@ -63,7 +63,7 @@ Move to the build directory inside the container and restore the packages: ``` cd /build -dotnet restore +dotnet restore fission-dotnet20.csproj log : Restoring packages for /source/project.json... log : Installing System.Net.WebSockets 4.0.0. log : Installing runtime.native.System.IO.Compression 4.1.0. diff --git a/environments/dotnet20/build.sh b/environments/dotnet20/build.sh index 9879e39e..72dee444 100755 --- a/environments/dotnet20/build.sh +++ b/environments/dotnet20/build.sh @@ -1,4 +1,6 @@ #!/bin/sh -dotnet restore -dotnet publish -c Release -o out -docker build -t fission/dotnet20-env . + +THIS_DIR=$(realpath $(dirname $0)) + +docker run -v $THIS_DIR:/proj microsoft/dotnet:2.0.0-sdk sh -c "cd /proj && ./project-build.sh" + diff --git a/environments/dotnet20/project-build.sh b/environments/dotnet20/project-build.sh new file mode 100755 index 00000000..12298d1c --- /dev/null +++ b/environments/dotnet20/project-build.sh @@ -0,0 +1,3 @@ +#!/bin/sh +dotnet restore fission-dotnet20.csproj +dotnet publish fission-dotnet20.csproj -c Release -o out diff --git a/hack/release.sh b/hack/release.sh index 0425f10a..c0ba5f51 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -118,7 +118,7 @@ build_and_push_all_envs() { build_and_push_env_image $version nodejs node-env build_and_push_env_image $version binary binary-env build_and_push_env_image $version dotnet dotnet-env - # (See #359) build_and_push_env_image $version dotnet20 dotnet20-env + build_and_push_env_image $version dotnet20 dotnet20-env build_and_push_env_image $version go go-env build_and_push_env_image $version perl perl-env build_and_push_env_image $version php7 php-env