Skip to content

Commit 0369d8a

Browse files
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: dotnet/msbuild#2153 (comment)
1 parent 01469da commit 0369d8a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

cli-linux/build-bits-linux.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ declare -a projectList=(
1616
"$path/Services/Location/Locations.API"
1717
"$path/Services/Marketing/Marketing.API"
1818
"$path/Services/Payment/Payment.API"
19-
"$path/Services/GracePeriod/GracePeriodManager"
2019
"$path/Web/WebMVC"
2120
"$path/Web/WebStatus"
2221
)
@@ -32,9 +31,9 @@ do
3231
pushd $path/$project
3332
rm -rf obj/Docker/publish
3433
echo -e "\e[33m\tRestoring project $project"
35-
dotnet restore
34+
dotnet restore --verbosity minimal
3635
echo -e "\e[33m\tBuilding and publishing $project"
37-
dotnet publish -o obj/Docker/publish
36+
dotnet publish -c Release -o obj/Docker/publish --verbosity minimal
3837
popd
3938
done
4039

docker-compose.ci.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
# Next line is using the .sln file to compile all the projects.
1212
# Sometime there is an issue in msbuild exits the process before finishing building the bits: (https://github.com/Microsoft/msbuild/issues/2153)
1313
# Random error: error MSB4017: The build stopped unexpectedly be cause of an unexpected logger failure.
14-
#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"
14+
#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"
1515

1616
# NOTE: Using build-bits-linux.sh from Linux build container exits before ending.
1717
command: /bin/bash -c "pushd ./src/Web/WebSPA && npm rebuild node-sass && popd && pushd /cli-linux && ./build-bits-linux.sh /src"

0 commit comments

Comments
 (0)