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
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