-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: puppet agent url + split version per dockerfile
- Loading branch information
Showing
3 changed files
with
44 additions
and
4 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,30 @@ | ||
ARG BASE | ||
|
||
FROM mcr.microsoft.com/windows/servercore:${BASE} | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue'; $verbosePreference='Continue';"] | ||
|
||
COPY ./puppet/helpers.ps1 C:/temp/helpers.ps1 | ||
|
||
ARG PUPPET_AGENT_VERSION=6.28.0 | ||
ARG PDK_VERSION=3.2.0.1 | ||
ARG RUBY_VERSION=3.3.4-1 | ||
|
||
RUN Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 ; \ | ||
$client = New-Object System.Net.WebClient ; \ | ||
$client.DownloadFile(\"https://downloads.puppetlabs.com/windows/puppet/pdk-$($env:PDK_VERSION)-x64.msi\",\"C:\temp\pdk-$($env:PDK_VERSION)-x64.msi\") ; \ | ||
$client.DownloadFile(\"https://downloads.puppetlabs.com/windows/puppet6/puppet-agent-$($env:PUPPET_AGENT_VERSION)-x64.msi\",\"C:\temp\puppet-agent-$($env:PUPPET_AGENT_VERSION)-x64.msi\") ; \ | ||
$client.DownloadFile(\"https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-$($env:RUBY_VERSION)/rubyinstaller-$($env:RUBY_VERSION)-x64.exe\",\"C:\temp\rubyinstaller.exe\") ; \ | ||
. C:\temp\helpers.ps1 ; \ | ||
Install-MSI "C:\temp\puppet-agent-$($env:PUPPET_AGENT_VERSION)-x64.msi" ; \ | ||
Install-MSI "C:\temp\pdk-$($env:PDK_VERSION)-x64.msi" ; \ | ||
& C:\temp\rubyinstaller.exe /verysilent /currentuser ; \ | ||
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force ; \ | ||
Install-Module -Name Pester -Force -SkipPublisherCheck ; \ | ||
[System.Environment]::SetEnvironmentVariable('PDK_DISABLE_ANALYTICS', 'true', [EnvironmentVariableTarget]::Machine) | ||
|
||
RUN gem install librarian-puppet -v 5.0.0 ; \ | ||
Remove-Item C:\temp -Force -Recurse | ||
|
||
WORKDIR C:/puppet | ||
CMD [ "powershell.exe", "-NoLogo" ] |
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