From 8d42dfeb399784361eecc85871ffe5561a4192cd Mon Sep 17 00:00:00 2001 From: Cesar De la Torre Date: Thu, 24 Aug 2017 19:33:15 -0700 Subject: [PATCH 1/2] Workaround (dotnet CLI set with verbosity minimal) so we don't get stdout errors when compiling from the Docker Linux "build containers" when doing the CLI build. Related bug: https://github.com/Microsoft/msbuild/issues/2153#issuecomment-305375162 --- cli-linux/build-bits-linux.sh | 4 ++-- docker-compose.ci.build.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli-linux/build-bits-linux.sh b/cli-linux/build-bits-linux.sh index 75ace0938..eee6a1546 100755 --- a/cli-linux/build-bits-linux.sh +++ b/cli-linux/build-bits-linux.sh @@ -32,9 +32,9 @@ do pushd $path/$project rm -rf obj/Docker/publish echo -e "\e[33m\tRestoring project $project" - dotnet restore + dotnet restore --verbosity minimal echo -e "\e[33m\tBuilding and publishing $project" - dotnet publish -o obj/Docker/publish + dotnet publish -c Release -o obj/Docker/publish --verbosity minimal popd done diff --git a/docker-compose.ci.build.yml b/docker-compose.ci.build.yml index 2a4c88724..c755ad1c3 100644 --- a/docker-compose.ci.build.yml +++ b/docker-compose.ci.build.yml @@ -11,7 +11,7 @@ services: # Next line is using the .sln file to compile all the projects. # Sometime there is an issue in msbuild exits the process before finishing building the bits: (https://github.com/Microsoft/msbuild/issues/2153) # Random error: error MSB4017: The build stopped unexpectedly be cause of an unexpected logger failure. - #command: /bin/bash -c "pushd ./src/Web/WebSPA && npm rebuild node-sass && popd && dotnet restore ./eShopOnContainers-ServicesAndWebApps.sln && dotnet publish ./eShopOnContainers-ServicesAndWebApps.sln -c Release -o ./obj/Docker/publish" + #command: /bin/bash -c "pushd ./src/Web/WebSPA && npm rebuild node-sass && popd && dotnet restore ./eShopOnContainers-ServicesAndWebApps.sln --verbosity minimal && dotnet publish ./eShopOnContainers-ServicesAndWebApps.sln -c Release -o ./obj/Docker/publish --verbosity minimal" # NOTE: Using build-bits-linux.sh from Linux build container exits before ending. command: /bin/bash -c "pushd ./src/Web/WebSPA && npm rebuild node-sass && popd && pushd /cli-linux && ./build-bits-linux.sh /src" From 9eaa81cbdb23220081bc485b65c780fa41bb67af Mon Sep 17 00:00:00 2001 From: Cesar De la Torre Date: Thu, 24 Aug 2017 19:41:30 -0700 Subject: [PATCH 2/2] Saved with Linux EOL --- cli-linux/build-bits-linux.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cli-linux/build-bits-linux.sh b/cli-linux/build-bits-linux.sh index eee6a1546..21f633dbf 100755 --- a/cli-linux/build-bits-linux.sh +++ b/cli-linux/build-bits-linux.sh @@ -50,4 +50,5 @@ done # No need to build the images, docker build or docker compose will # do that using the images and containers defined in the docker-compose.yml file. +# # \ No newline at end of file