An open API service indexing awesome lists of open source software.

https://github.com/devlead/testcakedocker

An example of building .NET Core projects using Cake within a docker container
https://github.com/devlead/testcakedocker

Last synced: 10 months ago
JSON representation

An example of building .NET Core projects using Cake within a docker container

Awesome Lists containing this project

README

          

# Cake docker example

This is an example repository of building a .NET Core project using a container with Cake and .NET Core SDK pre-installed. Which means the host doesn't need to have neither Cake or .NET Core installed to be able to execute script and build project.

## Usage

### MacOS / Linux

```bash
./run.sh
```

### Windows

```batch
run.cmd
```

## Cake Pre-Installed

So what does Cake pre-installed mean? It means the `Cake` tool is in the container image and available in path, so you could use it either as part of your own custom image or by using docker run.

```bash
docker run --rm -it cakebuild/cake:2.1-sdk bash
root@9740ebceba08:/# git clone https://github.com/devlead/TestCakeDocker.git
root@9740ebceba08:/# cd TestCakeDocker/src
root@9740ebceba08:/TestCakeDocker/src# Cake
```

![Build Example With Cake](https://user-images.githubusercontent.com/1647294/37251140-36e73c6e-250a-11e8-8717-ad5344d6ffe9.gif)