File tree Expand file tree Collapse file tree 9 files changed +25
-6
lines changed Expand file tree Collapse file tree 9 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ RUN tar zxf /tmp/linux.tar.gz -C ${PS_INSTALL_FOLDER} -v
30
30
# Start a new stage so we lose all the tar.gz layers from the final image
31
31
FROM ${imageRepo}:${fromTag}
32
32
33
+ ARG fromTag=3.9
34
+
33
35
# Copy only the files we need from the previous stage
34
36
COPY --from=installer-env ["/opt/microsoft/powershell" , "/opt/microsoft/powershell" ]
35
37
@@ -43,7 +45,7 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
43
45
LANG=en_US.UTF-8 \
44
46
# set a fixed location for the Module analysis cache
45
47
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
46
- POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Alpine-3.9
48
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Alpine-${fromTag}
47
49
48
50
# Install dotnet dependencies and ca-certificates
49
51
RUN apk add --no-cache \
Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ FROM node:10.15.3-alpine as node
8
8
9
9
FROM ${BaseImage}
10
10
11
+ ARG fromTag=3.9
12
+
11
13
ENV NODE_VERSION 10.15.3 \
12
14
YARN_VERSION=1.13.0 \
13
15
NVM_DIR="/root/.nvm" \
14
- POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Alpine-3.9
16
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Alpine-${fromTag}
15
17
16
18
# workaround for Alpine to run in Azure DevOps
17
19
ENV NODE_NO_WARNINGS=1
Original file line number Diff line number Diff line change @@ -9,13 +9,16 @@ ARG PACKAGE_VERSION=6.2.0_preview.2
9
9
ARG PS_PACKAGE=powershell-preview-${PACKAGE_VERSION}-1.rhel.7.x86_64.rpm
10
10
ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/${PS_PACKAGE}
11
11
12
+ ARG fromTag=7
13
+ ARG imageRepo=centos
14
+
12
15
# Define ENVs for Localization/Globalization
13
16
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
14
17
LC_ALL=en_US.UTF-8 \
15
18
LANG=en_US.UTF-8 \
16
19
# set a fixed location for the Module analysis cache
17
20
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
18
- POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-CentOS-7
21
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-CentOS-${fromTag}
19
22
20
23
# Install dependencies and clean up
21
24
RUN curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.rpm \
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ ARG PACKAGE_VERSION=6.2.0_preview.2
9
9
ARG PS_PACKAGE=powershell-preview-${PACKAGE_VERSION}-1.rhel.7.x86_64.rpm
10
10
ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/${PS_PACKAGE}
11
11
12
+ ARG fromTag=28
13
+
12
14
# Define ENVs for Localization/Globalization
13
15
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
14
16
LC_ALL=en_US.UTF-8 \
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ ARG BaseImage=mcr.microsoft.com/powershell:fedora-28
3
3
4
4
FROM ${BaseImage}
5
5
6
+ ARG fromTag=28
7
+
6
8
# Install dependencies and clean up
7
9
RUN dnf install -y \
8
10
sudo \
@@ -13,7 +15,7 @@ RUN dnf install -y \
13
15
procps-ng \
14
16
&& dnf clean all
15
17
16
- ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Fedora-28
18
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Fedora-${fromTag}
17
19
18
20
# Define args needed only for the labels
19
21
ARG VCS_REF="none"
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ RUN Write-host "Verifying valid Version..."; `
39
39
# Install PowerShell into NanoServer
40
40
FROM ${NanoServerRepo}:${fromTag}
41
41
42
+ ARG fromTag=1709
43
+
42
44
ARG VCS_REF="none"
43
45
ARG PS_VERSION=6.1.0-rc.1
44
46
ARG IMAGE_NAME=mcr.microsoft.com/powershell
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ RUN Write-host "Verifying valid Version..."; `
39
39
# Install PowerShell into NanoServer
40
40
FROM ${NanoServerRepo}:${fromTag}
41
41
42
+ ARG fromTag=1709
43
+
42
44
ARG VCS_REF="none"
43
45
ARG PS_VERSION=6.2.0-rc.1
44
46
ARG IMAGE_NAME=mcr.microsoft.com/powershell
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ RUN tar zxf /tmp/linux.tar.gz -C ${PS_INSTALL_FOLDER} -v
37
37
# Start a new stage so we lose all the tar.gz layers from the final image
38
38
FROM ${imageRepo}:${fromTag}
39
39
40
+ ARG fromTag=42.3
41
+
40
42
# Copy only the files we need from the previous stage
41
43
COPY --from=installer-env ["/opt/microsoft/powershell" , "/opt/microsoft/powershell" ]
42
44
@@ -50,7 +52,7 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
50
52
LANG=en_US.UTF-8 \
51
53
# set a fixed location for the Module analysis cache
52
54
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
53
- POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-OpenSUSE-42.3
55
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-OpenSUSE-${fromTag}
54
56
55
57
# Install dependencies
56
58
RUN zypper --non-interactive update --skip-interactive \
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ ARG BaseImage=mcr.microsoft.com/powershell:opensuse-42.3
3
3
4
4
FROM ${BaseImage}
5
5
6
+ ARG fromTag=42.3
7
+
6
8
# Install dependencies and clean up
7
9
RUN zypper --non-interactive update --skip-interactive \
8
10
&& zypper --non-interactive install \
@@ -16,7 +18,7 @@ RUN zypper --non-interactive update --skip-interactive \
16
18
# remove package manager log file
17
19
&& rm -f /var/log/zypp/history /var/log/zypper.log
18
20
19
- ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-OpenSUSE-42.3
21
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-OpenSUSE-${fromTag}
20
22
21
23
# Define args needed only for the labels
22
24
ARG VCS_REF="none"
You can’t perform that action at this time.
0 commit comments