Skip to content

Officially sanctioned worker images for Octopus Deploy

Notifications You must be signed in to change notification settings

mattboschatliveoak/WorkerTools

 
 

Repository files navigation

Worker Tools

Officially sanctioned worker images for Octopus Deploy available on docker hub

How to Use the Image

See the docs to get started using a worker-tools image as an execution container for workers.

Testing

To run these tests, you can see the instructions for Ubuntu and Windows

N.B. all commands below should be run from the project root directory.

Ubuntu

Our tests are implemented in serverspec, which relies on ruby and rspec.

Option 1: Build and Test scripts

./build.sh --image-directory=`ubuntu.18.04`

Runs a build and test of the ubuntu.18.04 container

Option 2: DIY

cd ubuntu.18.04
docker build . -t worker-tools
docker build . -t worker-tools-tests -f Tests.Dockerfile --build-arg ContainerUnderTest=worker-tools
docker run -it -v `pwd`:/app worker-tools-tests

Then within the running docker container

cd app && bundle install && bundle exec rspec

Windows

Option 1: Build and Test scripts

build.ps1 -image-directory 'windows.ltsc2019'

Runs a build and test of the windows.ltsc2019 container

Option 2: DIY

cd windows.ltsc2019
docker build . -t worker-tools
docker build . -t worker-tools-tests -f Tests.Dockerfile --build-arg ContainerUnderTest=worker-tools
docker run -it -v ${pwd}:c:\app worker-tools-tests powershell

Then within the running docker container

cd c:\app
Invoke-Pester spec\windows.ltsc2019* -EnableExit

About

Officially sanctioned worker images for Octopus Deploy

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 28.8%
  • PowerShell 24.4%
  • C# 22.5%
  • Ruby 13.7%
  • Shell 8.5%
  • Batchfile 2.1%