adamhathcock / cake-build

Docker Container with .NET Core 1 and 2 for Cake builds
1 stars 1 forks source link

mono command not found #1

Open fleed opened 6 years ago

fleed commented 6 years ago

If I got it right, I can use this container to run Cake build inside. I have the following Dockerfile:

FROM adamhathcock/cake-build:latest
COPY ./build.cake ./
COPY ./build.sh ./
COPY ./NuGet.config ./
COPY ./web ./web
COPY ./tools/packages.config ./tools/

ENTRYPOINT ["./build.sh"]

And I get the following error:

./build.sh: line 88: mono: command not found

Line 88 of the standard ./build.sh file being:

mono "$NUGET_EXE" install -ExcludeVersion

Did I misunderstand purpose and usage of this container?

adamhathcock commented 6 years ago

The purpose of this container was to have a dotnet cli only build and not use mono. If you're using the "official" build.sh then it requires mono.

Here's what I use: https://adamhathcock.blog/2017/07/12/net-core-on-circle-ci-2-0-using-docker-and-cake/

Or you can look here: https://github.com/adamhathcock/sharpcompress/blob/master/build.sh

adamhathcock commented 6 years ago

However this container is no longer needed as of Cake 0.26. Just use an official SDK image with the above scripting