File tree 26 files changed +160
-23
lines changed
26 files changed +160
-23
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,7 @@ update_configs:
34
34
- package_manager : " docker"
35
35
directory : " /release/preview/windowsservercore/dependabot"
36
36
update_schedule : " daily"
37
+
38
+ - package_manager : " docker"
39
+ directory : " /release/preview/alpine38/dependabot"
40
+ update_schedule : " daily"
Original file line number Diff line number Diff line change
1
+ FROM node:10.15.3-alpine
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 @@ -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
@@ -42,7 +44,8 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
42
44
LC_ALL=en_US.UTF-8 \
43
45
LANG=en_US.UTF-8 \
44
46
# set a fixed location for the Module analysis cache
45
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
47
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
48
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Alpine-${fromTag}
46
49
47
50
# Install dotnet dependencies and ca-certificates
48
51
RUN apk add --no-cache \
Original file line number Diff line number Diff line change @@ -8,9 +8,12 @@ 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
+ ARG fromTag=3.9
12
+
13
+ ENV NODE_VERSION=10.15.3 \
14
+ YARN_VERSION=1.13.0 \
15
+ NVM_DIR="/root/.nvm" \
16
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Alpine-${fromTag}
14
17
15
18
# workaround for Alpine to run in Azure DevOps
16
19
ENV NODE_NO_WARNINGS=1
Original file line number Diff line number Diff line change @@ -9,12 +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
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
20
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
21
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-CentOS-${fromTag}
18
22
19
23
# Install dependencies and clean up
20
24
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 @@ -9,12 +9,15 @@ 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 \
15
17
LANG=en_US.UTF-8 \
16
18
# set a fixed location for the Module analysis cache
17
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
19
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
20
+ POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-Fedora-${fromTag}
18
21
19
22
# Install dependencies and clean up
20
23
RUN curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.rpm \
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,6 +15,8 @@ RUN dnf install -y \
13
15
procps-ng \
14
16
&& dnf clean all
15
17
18
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Fedora-${fromTag}
19
+
16
20
# Define args needed only for the labels
17
21
ARG VCS_REF="none"
18
22
ARG IMAGE_NAME=mcr.microsoft.com/powershell/test-deps:fedora-28
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
@@ -65,7 +67,8 @@ ENV ProgramFiles="C:\Program Files" `
65
67
LOCALAPPDATA="C:\U sers\C ontainerAdministrator\A ppData\L ocal" `
66
68
PSModuleAnalysisCachePath="$LOCALAPPDATA\M icrosoft\W indows\P owerShell\d ocker\M oduleAnalysisCache" `
67
69
# Persist %PSCORE% ENV variable for user convenience
68
- PSCORE="$ProgramFiles\P owerShell\p wsh.exe"
70
+ PSCORE="$ProgramFiles\P owerShell\p wsh.exe" `
71
+ POWERSHELL_DISTRIBUTION_CHANNEL="PSDocker-NanoServer-${fromTag}"
69
72
70
73
COPY --from=installer-env ["\\ PowerShell\\ " , "$ProgramFiles\\ PowerShell" ]
71
74
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
@@ -67,7 +69,8 @@ ENV ProgramFiles="C:\Program Files" `
67
69
# Persist %PSCORE% ENV variable for user convenience
68
70
PSCORE="$ProgramFiles\P owerShell\p wsh.exe" `
69
71
# Set the default windows path so we can use it
70
- WindowsPATH="C:\W indows\s ystem32;C:\W indows"
72
+ WindowsPATH="C:\W indows\s ystem32;C:\W indows" `
73
+ POWERSHELL_DISTRIBUTION_CHANNEL="PSDocker-NanoServer-${fromTag}"
71
74
72
75
# Set the path
73
76
ENV PATH="$WindowsPATH;${ProgramFiles}\P owerShell;"
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
@@ -49,8 +51,8 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
49
51
LC_ALL=en_US.UTF-8 \
50
52
LANG=en_US.UTF-8 \
51
53
# set a fixed location for the Module analysis cache
52
- PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache
53
-
54
+ PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
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,6 +18,8 @@ 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
21
+ ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-OpenSUSE-${fromTag}
22
+
19
23
# Define args needed only for the labels
20
24
ARG VCS_REF="none"
21
25
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