Skip to content

Commit

Permalink
feat: switch librarian to fork
Browse files Browse the repository at this point in the history
  • Loading branch information
jpatigny authored Oct 16, 2024
1 parent 62d7df2 commit 65c98a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions puppet/dockerfile6
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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
ARG RUBY_VERSION=3.3.1-1
ARG PWSH_VERSION=7.4.5

RUN Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 ; \
Expand All @@ -24,10 +24,11 @@ RUN Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name '
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) ; \
Start-Process -FilePath C:\temp\rubyinstaller.exe -ArgumentList '/verysilent /currentuser' -Wait ; \
Start-Process -FilePath C:\temp\rubyinstaller.exe -ArgumentList '/verysilent /currentuser /tasks=\"assocfiles,noridkinsall,modpath\"' -Wait ; \
Remove-Item C:\temp -Force -Recurse

RUN gem install librarian-puppet -v 5.0.0
RUN gem install specific_install ; \
gem specific_install https://github.com/jpatigny/librarian-puppet.git

WORKDIR C:/puppet
CMD [ "pwsh.exe", "-NoLogo", "-NoProfileLoadTime" ]
5 changes: 3 additions & 2 deletions puppet/dockerfile8
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY ./puppet/helpers.ps1 C:/temp/helpers.ps1

ARG PUPPET_AGENT_VERSION=8.6.0
ARG PDK_VERSION=3.2.0.1
ARG RUBY_VERSION=3.3.4-1
ARG RUBY_VERSION=3.3.1-1
ARG PWSH_VERSION=7.4.5

RUN Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 ; \
Expand All @@ -27,7 +27,8 @@ RUN Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name '
Start-Process -FilePath C:\temp\rubyinstaller.exe -ArgumentList '/verysilent /currentuser' -Wait ; \
Remove-Item C:\temp -Force -Recurse

RUN gem install librarian-puppet -v 5.0.0
RUN gem install specific_install ; \
gem specific_install https://github.com/jpatigny/librarian-puppet.git

WORKDIR C:/puppet
CMD [ "pwsh.exe", "-NoLogo", "-NoProfileLoadTime" ]

0 comments on commit 65c98a1

Please sign in to comment.