2018-01-04 11:01:45 -08:00
version : '3.4'
2017-02-14 18:11:51 +01:00
services :
ci-build :
2017-10-27 18:38:54 -07:00
image: microsoft/aspnetcore-build:2.0.2 #Depending on the bug below, you can also try this other SDK image : microsoft/aspnetcore-build:1.0-2.0-2017-10 or microsoft/aspnetcore-build:1.0-2.0
2017-02-14 18:11:51 +01:00
volumes :
- .:/src
2017-06-21 12:38:21 +02:00
- ./cli-linux:/cli-linux
2017-02-14 18:11:51 +01:00
working_dir : /src
2017-08-06 16:35:23 -07:00
# 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.
2017-10-27 18:38:54 -07:00
command : /bin/bash -c "pushd ./src/Web/WebSPA && npm rebuild node-sass && popd && dotnet publish ./eShopOnContainers-ServicesAndWebApps.sln -c Release -o ./obj/Docker/publish"
2017-08-06 16:35:23 -07:00
# NOTE: Using build-bits-linux.sh from Linux build container exits before ending.
2017-10-27 18:38:54 -07:00
#command: /bin/bash -c "pushd ./src/Web/WebSPA && npm rebuild node-sass && popd && pushd /cli-linux && ./build-bits-linux.sh /src"
2017-05-06 23:28:38 -07:00