Skip to content

Commit

Permalink
feat(Windows): add buildx (#1215)
Browse files Browse the repository at this point in the history
* feat(Windows): add `buildx`

* fix missing docker plugins folder
  • Loading branch information
lemeurherve authored Jun 10, 2024
1 parent ef01676 commit 8bbe92c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions goss/goss-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ command:
docker-ce:
exec: docker -v
exit-status: 0
docker-buildx:
exec: docker buildx version
exit-status: 0
jdk11:
exec: C:\tools\jdk-11\bin\java --version
exit-status: 0
Expand Down
1 change: 1 addition & 0 deletions provisioning/tools-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ compose_version: 2.27.1
cst_version: 1.18.1
default_jdk: 11
docker_version: 26.1.3
docker_buildx_version: 0.14.1
doctl_version: 1.101.0
gh_version: 2.50.0
git_lfs_version: 3.5.1
Expand Down
8 changes: 8 additions & 0 deletions provisioning/windows-provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled Tru
$baseDir = 'C:\tools'
New-Item -ItemType Directory -Path $baseDir -Force | Out-Null

# Special case for docker plugins
$dockerPluginsDir = 'C:\ProgramData\docker\cli-plugins'
New-Item -ItemType Directory -Path $dockerPluginsDir -Force | Out-Null

# Ensure NuGet package provider is initialized (non-interactively)
Get-PackageProvider NuGet -ForceBootstrap

Expand Down Expand Up @@ -236,6 +240,10 @@ $downloads = [ordered]@{
'url' = 'https://github.com/goss-org/goss/releases/download/v{0}/goss-windows-amd64.exe' -f $env:GOSS_VERSION;
'local' = "$baseDir\goss.exe"
};
'docker-buildx' = @{
'url' = 'https://github.com/docker/buildx/releases/download/v{0}/buildx-v{0}.windows-amd64.exe' -f $env:DOCKER_BUILDX_VERSION;
'local' = "$dockerPluginsDir\docker-buildx.exe"
};
'chocolatey-and-packages' = @{
'url' = 'https://github.com/chocolatey/choco/releases/download/{0}/chocolatey.{0}.nupkg' -f $env:CHOCOLATEY_VERSION;
'local' = "$baseDir\chocolatey.zip";
Expand Down

0 comments on commit 8bbe92c

Please sign in to comment.