FROM semaphoreui/semaphore # switch to root user in order to install packages USER root # update and install additional packages RUN apk update && apk upgrade && apk add sudo ca-certificates util-linux powershell # install additional python packages RUN pip install requests pyyaml netaddr jmespath jsonpatch cryptography pyvmomi proxmoxer kubernetes # install kubernetes binaries COPY ./binaries binaries RUN install -o root -g root -m 0755 ./binaries/* /usr/local/bin/ && rm -r ./binaries # install PowerCLI RUN pwsh -c 'Set-PSRepository -Name PSGallery -InstallationPolicy Trusted; Install-Module -Name VCF.PowerCLI -Confirm:$false; Get-Module -ListAvailable PowerCLI* | Import-Module; Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP $false -Confirm:$false' # handle custom ansible-galaxy packages ENV ANSIBLE_COLLECTIONS_PATH=/opt RUN ansible-galaxy collection install --upgrade community.vmware # setup custom entrypoint COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh CMD ["/entrypoint.sh"]