diff --git a/environments/dotnet/README.md b/environments/dotnet/README.md index 3e9829d6..e122e925 100644 --- a/environments/dotnet/README.md +++ b/environments/dotnet/README.md @@ -35,54 +35,17 @@ Please see examples below. ## Rebuilding and pushing the image -To rebuild the image you need either a computer with dotnet 1.1.0 -installed or else you will have to map the source directory into a -container containing the dotnet 1.1.0 environment. +To rebuild the image you will have to install Docker with version higher than 17.05+ +in order to support multi-stage builds feature. -### Locally installed Dotnet 1.1.0 +### Rebuild containers -Simply move to the source directory in a terminal and run the ./build.sh script. - -The script will restore dependencies, compile a release build and -and build the container. If you need to change the name of the container -simply change it in the script. - -After the build finishes push the new image to a Docker registry using the -standard procedure. - -### Build in a container - -Move to the directory containing the source and start the Docker container -with dotnet and mount the current directory to a build location: +Move to the directory containing the source and start the container build process: ``` -docker run -it --rm -v $PWD:/build microsoft/dotnet -``` - -Move to the build directory inside the container and restore the packages: - -``` -cd /build -dotnet restore -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. -... -``` - -Compile and publish a release build of the source to the 'out' folder: - -``` -dotnet publish -c Release -o out -Publishing source for .NETCoreApp,Version -... -``` -Exit the build container and build the Docker container on the local host: - -``` -exit docker build -t USER/dotnet-env . -``` +``` + After the build finishes push the new image to a Docker registry using the standard procedure. diff --git a/environments/dotnet/build.sh b/environments/dotnet/build.sh deleted file mode 100755 index b10b28bc..00000000 --- a/environments/dotnet/build.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# clean up -rm -rf bin obj out - diff --git a/environments/dotnet20/README.md b/environments/dotnet20/README.md index 889c94ea..040b9ab5 100644 --- a/environments/dotnet20/README.md +++ b/environments/dotnet20/README.md @@ -35,54 +35,17 @@ Please see examples below. ## Rebuilding and pushing the image -To rebuild the image you need either a computer with dotnet core 2.0.0 -installed or else you will have to map the source directory into a -container containing the dotnet core 2.0.0 environment. +To rebuild the image you will have to install Docker with version higher than 17.05+ +in order to support multi-stage builds feature. -### Locally installed Dotnet core 2.0.0 +### Rebuild containers -Simply move to the source directory in a terminal and run the ./build.sh script. - -The script will restore dependencies, compile a release build and -and build the container. If you need to change the name of the container -simply change it in the script. - -After the build finishes push the new image to a Docker registry using the -standard procedure. - -### Build in a container - -Move to the directory containing the source and start the Docker container -with dotnet and mount the current directory to a build location: +Move to the directory containing the source and start the container build process: ``` -docker run -it --rm -v $PWD:/build microsoft/dotnet -``` - -Move to the build directory inside the container and restore the packages: - -``` -cd /build -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. -... -``` - -Compile and publish a release build of the source to the 'out' folder: - -``` -dotnet publish -c Release -o out -Publishing source for .NETCoreApp,Version -... -``` -Exit the build container and build the Docker container on the local host: - -``` -exit docker build -t USER/dotnet20-env . -``` +``` + After the build finishes push the new image to a Docker registry using the standard procedure. diff --git a/environments/dotnet20/build.sh b/environments/dotnet20/build.sh deleted file mode 100755 index d29d60c5..00000000 --- a/environments/dotnet20/build.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -# clean up -rm -rf bin obj out diff --git a/environments/perl/README.md b/environments/perl/README.md index d7704c3b..85bdd640 100644 --- a/environments/perl/README.md +++ b/environments/perl/README.md @@ -9,6 +9,12 @@ It is implemented using the lightweight web application framework Since Twiggy is implemented with [AnyEvent](https://metacpan.org/pod/AnyEvent), you can write async code using AnyEvent in your function. +## Build this image + +``` +docker build -t USER/perl . && docker push USER/perl +``` + ## Usage The function you upload is actually a perl package returning a coderef (see the