Skip to content

| Public | Officially sanctioned worker images for Octopus Deploy

Notifications You must be signed in to change notification settings

OctopusDeploy/WorkerTools

Repository files navigation

Worker Tools

Officially sanctioned worker images for Octopus Deploy available on docker hub

Operating System Installed Tools and Versions
Ubuntu 22.04 Installed tools (Dockerfile)
Windows Server Core 2022 Installed tools (Dockerfile)

Management

The Worker Tools images provided by this repository are currently updated on a best-effort basis. This repository should contain the latest stable versions of all of the tools.

If you want a tool version that is not yet available, PRs are welcome.

If the tools or the way they are managed don't fit your particular use case, it is easy to create your own images to use as execution containers.

Getting Started

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

The images we publish are semantically versioned. To ensure stability within your deployment processes, we recommend using the full major.minor.patch tag when using the octopusdeploy/worker-tools image - for example, use 2.0.2-ubuntu.22.04, not ubuntu.22.04.

Contributing

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 Pester, which relies on PowerShell.

Option 1: Build and Test scripts

./build.sh --image-directory='ubuntu.22.04'

Runs a build and test of the ubuntu.22.04 container

Option 2: DIY

cd ubuntu.22.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 pwsh

Then within the running docker container

/app/scripts/run-tests.ps1

Windows

Option 1: Build and Test scripts

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

Runs a build and test of the windows.ltsc2022 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 pwsh

Then within the running docker container

/app/scripts/run-tests.ps1