You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a Dockerfile for argoexec:v3.6.2-windows-ltsc2019:
##################################################################################################### Builder image# Initial stage which pulls prepares build dependencies and CLI tooling we need for our final image# Also used as the image in CI jobs so needs all dependencies####################################################################################################ARG IMAGE_OS_VERSION=ltsc2019
# had issues with official golange image for windows so I'm using plain servercoreFROM mcr.microsoft.com/windows/servercore:${IMAGE_OS_VERSION} as builder
ENV GOLANG_VERSION=1.23.4
SHELL ["powershell", "-Command"]
# install chocolatey package managerENV chocolateyUseWindowsCompression=false
# set chocolatey version for windows server 2019# fix .NET Framework 4.8 was installed, but a reboot is required.ENV chocolateyVersion=1.4.1
RUN iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \
choco feature disable --name showDownloadProgress ; \
choco feature enable -n allowGlobalConfirmation
# install golang, dep and other toolsRUN choco install golang --version=$env:GOLANG_VERSION ; \
choco install make dep git.portable 7zip.portable llvm
##################################################################################################### argoexec-base# Used as the base for both the release and development version of argoexec####################################################################################################FROM mcr.microsoft.com/windows/nanoserver:${IMAGE_OS_VERSION} as argoexec-base
COPY --from=builder /windows/system32/netapi32.dll /windows/system32/netapi32.dll
COPY --from=builder C:/ProgramData/chocolatey/lib/7zip.portable/tools/7z-extra/x64/7za.exe C:/app/7za.exe
# add binaries to pathUSER Administrator
RUN SETX /m path C:\app;%path%
##################################################################################################### Argo Build stage which performs the actual build of Argo binaries####################################################################################################FROM builder as argo-build
ARG GIT_COMMIT=741ab0ef7b6432925e49882cb4294adccf5912ec
ARG GIT_TAG=v3.6.2
ARG GIT_TREE_STATE=clean
# Perform the buildWORKDIR C:/Users/ContainerAdministrator/go/src/github.com/argoproj/argo-workflows
# core.symlinks=true# fix workflow\executor\os-specific\signal_linux.go:1:1: expected 'package', found signal_darwin# https://github.com/argoproj/argo-workflows/pull/13534/filesRUN git config --global core.symlinks true
RUN git clone -b ${GIT_TAG} --depth 1 https://github.com/argoproj/argo-workflows.git .
RUN go mod download
# run in git bash for all the shell commands in Makefile to workRUN bash -c 'make dist/argoexec GIT_COMMIT=${GIT_COMMIT} GIT_TAG=${GIT_TAG} GIT_TREE_STATE=clean HACK_PKG_FILES_AS_PKGS=true'##################################################################################################### argoexec####################################################################################################FROM argoexec-base as argoexec
COPY --from=argo-build C:/Users/ContainerAdministrator/go/src/github.com/argoproj/argo-workflows/dist/argoexec C:/app/argoexec.exe
RUN argoexec version
ENTRYPOINT [ "argoexec" ]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is a Dockerfile for argoexec:v3.6.2-windows-ltsc2019:
docker build -t quay.io/argoproj/argoexec:v3.6.2 -f ./Dockerfile .
Beta Was this translation helpful? Give feedback.
All reactions