Cake build container
I love Cake but it doesn’t run on .NET Core 2 yet. Actually, I’m trying to fix that issue: https://github.com/cake-build/cake/pull/1812
Unfortunately, the official Docker images don’t have both runtimes installed. So it should be easy to make an image with both right? Well, it wasn’t as easy as I thought it would but I managed to do it! https://github.com/adamhathcock/cake-build
Uses a Ubuntu 16.04 base image with a .NET Core 1 runtime installed then .NET Core 2 SDK installed. This should be enough to build any .NET Core 2 project using Cake.
CircleCI is my build service of choice and it is Docker all the way!
Sample CircleCI 2.0 Config
version: 2 jobs: build: docker: - image: adamhathcock/cake-build:latest steps: - checkout - run: name: Build command: ./build.sh
Actually, this config isn’t that interesting 🙂
2 thoughts on “Docker Container with .NET Core 1 and 2 for Cake builds”