File tree Expand file tree Collapse file tree 21 files changed +46
-19
lines changed Expand file tree Collapse file tree 21 files changed +46
-19
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
42
42
LC_ALL=en_US.UTF-8 \
43
43
LANG=en_US.UTF-8 \
44
44
# set a fixed location for the Module analysis cache
45
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
45
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
46
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Alpine-3.8
46
47
47
48
# Install dotnet dependencies and ca-certificates
48
49
RUN apk add --no-cache \
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ FROM node:10.15.3-alpine as node
8
8
9
9
FROM ${BaseImage}
10
10
11
- ENV NODE_VERSION 10.15.3
12
- ENV YARN_VERSION=1.13.0
13
- ENV NVM_DIR="/root/.nvm"
11
+ ENV NODE_VERSION 10.15.3 \
12
+ YARN_VERSION=1.13.0 \
13
+ NVM_DIR="/root/.nvm" \
14
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Alpine-3.8
14
15
15
16
# workaround for Alpine to run in Azure DevOps
16
17
ENV NODE_NO_WARNINGS=1
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
42
42
LC_ALL=en_US.UTF-8 \
43
43
LANG=en_US.UTF-8 \
44
44
# set a fixed location for the Module analysis cache
45
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
45
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
46
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Alpine-3.9
46
47
47
48
# Install dotnet dependencies and ca-certificates
48
49
RUN apk add --no-cache \
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ FROM node:10.15.3-alpine as node
8
8
9
9
FROM ${BaseImage}
10
10
11
- ENV NODE_VERSION 10.15.3
12
- ENV YARN_VERSION=1.13.0
13
- ENV NVM_DIR="/root/.nvm"
11
+ ENV NODE_VERSION 10.15.3 \
12
+ YARN_VERSION=1.13.0 \
13
+ NVM_DIR="/root/.nvm" \
14
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Alpine-3.9
14
15
15
16
# workaround for Alpine to run in Azure DevOps
16
17
ENV NODE_NO_WARNINGS=1
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
14
14
LC_ALL=en_US.UTF-8 \
15
15
LANG=en_US.UTF-8 \
16
16
# set a fixed location for the Module analysis cache
17
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
17
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
18
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-CentOS-7
18
19
19
20
# Install dependencies and clean up
20
21
RUN curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.rpm \
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ RUN yum install -y \
10
10
openssl \
11
11
&& yum clean all
12
12
13
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-CentOS-7
14
+
13
15
# Define args needed only for the labels
14
16
ARG VCS_REF="none"
15
17
ARG IMAGE_NAME=mcr.microsoft.com/powershell/test-deps:centos-7
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
40
40
LC_ALL=en_US.UTF-8 \
41
41
LANG=en_US.UTF-8 \
42
42
# set a fixed location for the Module analysis cache
43
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
43
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
44
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Debian-10
44
45
45
46
# Install dependencies and clean up
46
47
RUN apt-get update \
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ RUN apt-get update \
15
15
&& apt-get clean \
16
16
&& rm -rf /var/lib/apt/lists/*
17
17
18
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Debian-10
19
+
18
20
# Define args needed only for the labels
19
21
ARG VCS_REF="none"
20
22
ARG IMAGE_NAME=mcr.microsoft.com/powershell/test-deps:debian-9
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
17
17
LC_ALL=en_US.UTF-8 \
18
18
LANG=en_US.UTF-8 \
19
19
# set a fixed location for the Module analysis cache
20
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
20
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
21
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Debian-9
21
22
22
23
# Install dependencies and clean up
23
24
RUN apt-get update \
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ RUN apt-get update \
15
15
&& apt-get clean \
16
16
&& rm -rf /var/lib/apt/lists/*
17
17
18
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Debian-9
19
+
18
20
# Define args needed only for the labels
19
21
ARG VCS_REF="none"
20
22
ARG IMAGE_NAME=mcr.microsoft.com/powershell/test-deps:debian-9
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
14
14
LC_ALL=en_US.UTF-8 \
15
15
LANG=en_US.UTF-8 \
16
16
# set a fixed location for the Module analysis cache
17
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
17
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
18
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Fedora-${fromTag}
18
19
19
20
# Install dependencies and clean up
20
21
RUN curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.rpm \
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ RUN dnf install -y \
13
13
procps-ng \
14
14
&& dnf clean all
15
15
16
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Fedora-28
17
+
16
18
# Define args needed only for the labels
17
19
ARG VCS_REF="none"
18
20
ARG IMAGE_NAME=mcr.microsoft.com/powershell/test-deps:fedora-28
Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ ENV ProgramFiles="C:\Program Files" `
65
65
LOCALAPPDATA="C:\U sers\C ontainerAdministrator\A ppData\L ocal" `
66
66
PSModuleAnalysisCachePath="$LOCALAPPDATA\M icrosoft\W indows\P owerShell\d ocker\M oduleAnalysisCache" `
67
67
# Persist %PSCORE% ENV variable for user convenience
68
- PSCORE="$ProgramFiles\P owerShell\p wsh.exe"
68
+ PSCORE="$ProgramFiles\P owerShell\p wsh.exe" `
69
+ POWERSHELL_DISTRIBUTION_CHANNEL="PSDocker-NanoServer-${fromTag}"
69
70
70
71
COPY --from=installer-env ["\\ PowerShell\\ " , "$ProgramFiles\\ PowerShell" ]
71
72
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ ENV ProgramFiles="C:\Program Files" `
67
67
# Persist %PSCORE% ENV variable for user convenience
68
68
PSCORE="$ProgramFiles\P owerShell\p wsh.exe" `
69
69
# Set the default windows path so we can use it
70
- WindowsPATH="C:\W indows\s ystem32;C:\W indows"
70
+ WindowsPATH="C:\W indows\s ystem32;C:\W indows" `
71
+ POWERSHELL_DISTRIBUTION_CHANNEL="PSDocker-NanoServer-${fromTag}"
71
72
72
73
# Set the path
73
74
ENV PATH="$WindowsPATH;${ProgramFiles}\P owerShell;"
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
49
49
LC_ALL=en_US.UTF-8 \
50
50
LANG=en_US.UTF-8 \
51
51
# set a fixed location for the Module analysis cache
52
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
53
-
52
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
53
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-OpenSUSE-42.3
54
54
55
55
# Install dependencies
56
56
RUN zypper --non-interactive update --skip-interactive \
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ RUN zypper --non-interactive update --skip-interactive \
16
16
# remove package manager log file
17
17
&& rm -f /var/log/zypp/history /var/log/zypper.log
18
18
19
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-OpenSUSE-42.3
20
+
19
21
# Define args needed only for the labels
20
22
ARG VCS_REF="none"
21
23
ARG IMAGE_NAME=mcr.microsoft.com/powershell/test-deps:centos7
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
17
17
LC_ALL=en_US.UTF-8 \
18
18
LANG=en_US.UTF-8 \
19
19
# set a fixed location for the Module analysis cache
20
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
20
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
21
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Ubuntu-16.04
21
22
22
23
# Install dependencies and clean up
23
24
RUN apt-get update \
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ RUN apt-get update \
14
14
&& apt-get clean \
15
15
&& rm -rf /var/lib/apt/lists/*
16
16
17
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Ubuntu-16.04
18
+
17
19
# Define args needed only for the labels
18
20
ARG VCS_REF="none"
19
21
ARG IMAGE_NAME=mcr.microsoft.com/powershell/test-deps:ubuntu-16.04
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
17
17
LC_ALL=en_US.UTF-8 \
18
18
LANG=en_US.UTF-8 \
19
19
# set a fixed location for the Module analysis cache
20
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
20
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
21
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Ubuntu-18.04
21
22
22
23
# Install dependencies and clean up
23
24
RUN apt-get update \
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ RUN apt-get update \
14
14
&& apt-get clean \
15
15
&& rm -rf /var/lib/apt/lists/*
16
16
17
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Ubuntu-18.04
18
+
17
19
# Define args needed only for the labels
18
20
ARG VCS_REF="none"
19
21
ARG IMAGE_NAME=mcr.microsoft.com/powershell/test-deps:ubuntu-18.04
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ ENV ProgramFiles="C:\Program Files" `
39
39
LOCALAPPDATA="C:\U sers\C ontainerAdministrator\A ppData\L ocal" `
40
40
PSModuleAnalysisCachePath="$LOCALAPPDATA\M icrosoft\W indows\P owerShell\d ocker\M oduleAnalysisCache" `
41
41
# Persist %PSCORE% ENV variable for user convenience
42
- PSCORE="$ProgramFiles\P owerShell\p wsh.exe"
42
+ PSCORE="$ProgramFiles\P owerShell\p wsh.exe" `
43
+ POWERSHELL_DISTRIBUTION_CHANNEL="PSDocker-WindowsServerCore-${fromTag}"
43
44
44
45
# Copy PowerShell Core from the installer container
45
46
COPY --from=installer-env ["\\ PowerShell\\ " , "$ProgramFiles\\ PowerShell\\ latest" ]
You can’t perform that action at this time.
0 commit comments