Octopus Deploy Linux Container

I recently went to upgrade my octopus container and completely forgot we we’re running an customised version of it.

It would be nice to not have to customise it :slight_smile:

I use the kubernetes tasks which require me to install kubectl, pwsh and azure cli etc. I don’t know what the optimal solution is here. It seems offering docker images with various options is an awkward tag dance.

Heres my updated dockerfile if it helps get things moving.

FROM octopusdeploy/octopusdeploy:2020.2.16-linux

RUN apt-get update && apt-get install -y apt-transport-https gnupg2 less locales ca-certificates libicu63 libssl1.1 libc6 libgcc1 libgssapi-krb5-2 liblttng-ust0 libstdc++6 zlib1g curl jq

RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

RUN echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list

RUN apt-get update && apt-get install -y kubectl

RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash

RUN curl -L  https://github.com/PowerShell/PowerShell/releases/download/v7.0.0/powershell-7.0.0-linux-x64.tar.gz -o /tmp/powershell.tar.gz

RUN mkdir -p /opt/microsoft/powershell/7 && tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7 && chmod +x /opt/microsoft/powershell/7/pwsh

RUN ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh

Hi @critchley.sj,

Thanks for getting in touch!

We actually have run into this same issue when creating our Octopus Cloud platform. It didn’t seem feasible to constantly update the image with new versions of tools so we introduced Workers. This allowed the Octopus Server itself to remain clean and online whilst the Worker could have tools installed and updated as needed.

This didn’t solve every problem though, as it still required those tools to be maintained, which led to our new feature Execution Containers for Workers. It is still in early access but is available in our latest version. The idea is that you can instruct the worker to run the process step within an image of your choice, we have some sample images linked to within that guide.

I hope this is is what you’re looking for, please let me know if you have any further questions.


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.