chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

(#98) Adds Optional Docker Steps #99

Closed JPRuskin closed 1 year ago

JPRuskin commented 1 year ago

Description Of Changes

Adds steps that can be used to produce Docker containers. Currently matched very closely to what is required with chocolatey\choco.

Motivation and Context

We need steps to produce Docker containers.

Testing

  1. WIndows
    1. Spin up a machine compatible with the LTSC 2016 Docker containers, with Docker available
    2. Using Chocolatey\Choco as the example, so download that repository
    3. Run .\Build.ps1 --Target Docker from the root of the repository
    4. Test the new image with something similar to docker run --rm chocolatey/choco:latest-windows choco.exe --version
  2. Linux
    1. Spin up an Ubuntu machine with Docker, Mono, and Dotnet available
    2. Download Chocolatey\Choco
    3. Run sudo .\Build.sh --Target Docker
    4. Test the new image

Operating Systems Tested

Change Types Made

Change Checklist

Related Issue

Fixes #98

gep13 commented 1 year ago

@JPRuskin thanks for getting this added!