-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from theohbrothers/enhancement/bump-powershell…
…-7.2-variants-to-7.2.2 Enhancement: Bump powershell `7.2` variants to `7.2.2`
- Loading branch information
Showing
7 changed files
with
124 additions
and
29 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
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,25 @@ | ||
FROM mcr.microsoft.com/powershell:7.2.2-alpine-3.14-20220318 | ||
|
||
# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 | ||
ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 | ||
ENV POWERSHELL_TELEMETRY_OPTOUT=1 | ||
ENV POWERSHELL_UPDATECHECK=Off | ||
ENV POWERSHELL_UPDATECHECK_OPTOUT=1 | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
ENV DOTNET_TELEMETRY_OPTOUT=1 | ||
ENV COMPlus_EnableDiagnostics=0 | ||
|
||
# Install Pester | ||
RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' | ||
RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' | ||
|
||
RUN apk add --no-cache git | ||
|
||
RUN set -eux; \ | ||
wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ | ||
chmod +x /usr/local/bin/sops; \ | ||
sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ | ||
sops --version | ||
|
||
RUN apk add --no-cache gnupg | ||
|
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,15 @@ | ||
FROM mcr.microsoft.com/powershell:7.2.2-alpine-3.14-20220318 | ||
|
||
# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 | ||
ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 | ||
ENV POWERSHELL_TELEMETRY_OPTOUT=1 | ||
ENV POWERSHELL_UPDATECHECK=Off | ||
ENV POWERSHELL_UPDATECHECK_OPTOUT=1 | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
ENV DOTNET_TELEMETRY_OPTOUT=1 | ||
ENV COMPlus_EnableDiagnostics=0 | ||
|
||
# Install Pester | ||
RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' | ||
RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' | ||
|
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,40 @@ | ||
FROM mcr.microsoft.com/powershell:7.2.2-ubuntu-20.04-20220318 | ||
|
||
# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 | ||
ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 | ||
ENV POWERSHELL_TELEMETRY_OPTOUT=1 | ||
ENV POWERSHELL_UPDATECHECK=Off | ||
ENV POWERSHELL_UPDATECHECK_OPTOUT=1 | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
ENV DOTNET_TELEMETRY_OPTOUT=1 | ||
ENV COMPlus_EnableDiagnostics=0 | ||
|
||
# Install Pester | ||
RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' | ||
RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' | ||
|
||
RUN set -eux; \ | ||
apt-get update; \ | ||
apt-get install -y git; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install sops | ||
RUN set -eux; \ | ||
buildDeps="wget"; \ | ||
apt-get update; \ | ||
apt-get install --no-install-recommends -y $buildDeps; \ | ||
wget -qO- https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux > /usr/local/bin/sops; \ | ||
chmod +x /usr/local/bin/sops; \ | ||
sha256sum /usr/local/bin/sops | grep '^185348fd77fc160d5bdf3cd20ecbc796163504fd3df196d7cb29000773657b74 '; \ | ||
sops --version; \ | ||
apt-get purge --auto-remove -y $buildDeps; \ | ||
apt-get clean; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install gnupg for sops | ||
RUN set -eux; \ | ||
apt-get update; \ | ||
apt-get install --no-install-recommends -y gnupg2; \ | ||
apt-get clean; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
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,15 @@ | ||
FROM mcr.microsoft.com/powershell:7.2.2-ubuntu-20.04-20220318 | ||
|
||
# Disable telemetry for powershell 7.0.0 and above and .NET core: https://github.com/PowerShell/PowerShell/issues/16234#issuecomment-942139350 | ||
ENV POWERSHELL_CLI_TELEMETRY_OPTOUT=1 | ||
ENV POWERSHELL_TELEMETRY_OPTOUT=1 | ||
ENV POWERSHELL_UPDATECHECK=Off | ||
ENV POWERSHELL_UPDATECHECK_OPTOUT=1 | ||
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 | ||
ENV DOTNET_TELEMETRY_OPTOUT=1 | ||
ENV COMPlus_EnableDiagnostics=0 | ||
|
||
# Install Pester | ||
RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 4.0.0 -MaximumVersion 4.10.1 -Force -ErrorAction Stop -Verbose' | ||
RUN pwsh -c 'Install-Module Pester -Scope AllUsers -MinimumVersion 5.0.0 -Force -ErrorAction Stop -Verbose' | ||
|