-
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 #58 from theohbrothers/enhancement/add-pwsh-7.4.0-…
…variants Enhancement: Add pwsh 7.4.0 variants
- Loading branch information
Showing
15 changed files
with
670 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"pwsh": { | ||
"versions": [ | ||
"7.4.0", | ||
"7.3.10", | ||
"7.2.17" | ||
], | ||
|
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,29 @@ | ||
FROM mcr.microsoft.com/powershell:7.4-alpine-3.17 | ||
|
||
# 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 | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- pwsh "$@" | ||
fi | ||
|
||
exec "$@" |
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,21 @@ | ||
FROM mcr.microsoft.com/powershell:7.4-alpine-3.17 | ||
|
||
# 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 | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- pwsh "$@" | ||
fi | ||
|
||
exec "$@" |
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,19 @@ | ||
FROM mcr.microsoft.com/powershell:7.4-alpine-3.17 | ||
|
||
# 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' | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- pwsh "$@" | ||
fi | ||
|
||
exec "$@" |
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,44 @@ | ||
FROM mcr.microsoft.com/powershell:7.4-ubuntu-22.04 | ||
|
||
# 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/* | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- pwsh "$@" | ||
fi | ||
|
||
exec "$@" |
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,24 @@ | ||
FROM mcr.microsoft.com/powershell:7.4-ubuntu-22.04 | ||
|
||
# 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/* | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- pwsh "$@" | ||
fi | ||
|
||
exec "$@" |
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,19 @@ | ||
FROM mcr.microsoft.com/powershell:7.4-ubuntu-22.04 | ||
|
||
# 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' | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x docker-entrypoint.sh | ||
|
||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ] && [ "${1#-}" != "$1" ]; then | ||
set -- pwsh "$@" | ||
fi | ||
|
||
exec "$@" |