2017-10-08 13:24:32 -07:00
|
|
|
version: '3'
|
2017-02-14 18:11:51 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
ci-build:
|
2017-08-23 11:16:26 -07:00
|
|
|
image: microsoft/aspnetcore-build: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-08-24 19:33:08 -07:00
|
|
|
#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"
|
2017-08-06 16:35:23 -07:00
|
|
|
|
|
|
|
# NOTE: Using build-bits-linux.sh from Linux build container exits before ending.
|
2017-08-10 09:01:37 +02: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
|
|
|
|