forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e97c77
commit ff947b4
Showing
21 changed files
with
1,092 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
FROM rancher/golang:1.17-windowsservercore-20H2 | ||
SHELL ["powershell", "-NoLogo", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
||
ARG DAPPER_HOST_ARCH | ||
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH} | ||
|
||
RUN pushd c:\; \ | ||
$URL = 'https://github.com/StefanScherer/docker-cli-builder/releases/download/20.10.5/docker.exe'; \ | ||
\ | ||
Write-Host ('Downloading docker from {0} ...' -f $URL); \ | ||
curl.exe -sfL $URL -o c:\Windows\docker.exe; \ | ||
\ | ||
Write-Host 'Complete.'; \ | ||
popd; | ||
|
||
RUN pushd c:\; \ | ||
$URL = 'https://github.com/golangci/golangci-lint/releases/download/v1.44.0/golangci-lint-1.44.0-windows-amd64.zip'; \ | ||
\ | ||
Write-Host ('Downloading golangci from {0} ...' -f $URL); \ | ||
curl.exe -sfL $URL -o c:\golangci-lint.zip; \ | ||
\ | ||
Write-Host 'Expanding ...'; \ | ||
Expand-Archive -Path c:\golangci-lint.zip -DestinationPath c:\; \ | ||
\ | ||
Write-Host 'Cleaning ...'; \ | ||
Remove-Item -Force -Recurse -Path c:\golangci-lint.zip; \ | ||
\ | ||
Write-Host 'Updating PATH ...'; \ | ||
[Environment]::SetEnvironmentVariable('PATH', ('c:\golangci-lint-1.43.0-windows-amd64\;{0}' -f $env:PATH), [EnvironmentVariableTarget]::Machine); \ | ||
\ | ||
Write-Host 'Complete.'; \ | ||
popd; | ||
|
||
# upgrade git | ||
RUN pushd c:\; \ | ||
$URL = 'https://github.com/git-for-windows/git/releases/download/v2.33.1.windows.1/MinGit-2.33.1-64-bit.zip'; \ | ||
\ | ||
Write-Host ('Downloading git from {0} ...' -f $URL); \ | ||
curl.exe -sfL $URL -o c:\git.zip; \ | ||
\ | ||
Write-Host 'Expanding ...'; \ | ||
Expand-Archive -Force -Path c:\git.zip -DestinationPath c:\git\.; \ | ||
\ | ||
Write-Host 'Cleaning ...'; \ | ||
Remove-Item -Force -Recurse -Path c:\git.zip; \ | ||
\ | ||
Write-Host 'Complete.'; \ | ||
popd; | ||
|
||
ENV DAPPER_ENV REPO TAG DRONE_TAG FOSSA_API_KEY | ||
ENV DAPPER_SOURCE /gopath/src/github.com/rancher/rancher | ||
ENV DAPPER_OUTPUT ./bin | ||
ENV DAPPER_DOCKER_SOCKET true | ||
ENV TRASH_CACHE ${DAPPER_SOURCE}/.trash-cache | ||
ENV HOME ${DAPPER_SOURCE} | ||
|
||
WORKDIR ${DAPPER_SOURCE} | ||
ENTRYPOINT ["powershell", "-NoLogo", "-NonInteractive", "-File", "./scripts/windows/entry.ps1"] | ||
CMD ["ci"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.