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 2019 | Installed tools (Dockerfile) |
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.
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
.
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.
Our tests are implemented in Pester
, which relies on PowerShell
.
./build.sh --image-directory='ubuntu.22.04'
Runs a build and test of the ubuntu.22.04
container
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
build.ps1 -image-directory 'windows.ltsc2019'
Runs a build and test of the windows.ltsc2019
container
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