Skip to content

Commit f81b241

Browse files
authoredJan 24, 2021
Remove remaining getlatesttag.ps1 files (#533)
* remove remaining getlatesttag.ps1 files * remove the last fromTag in a Dockerfile that is used
1 parent bf77014 commit f81b241

File tree

19 files changed

+42
-102
lines changed

19 files changed

+42
-102
lines changed
 

‎release/lts/arm32v7/docker/Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4-
ARG fromTag=bionic
5-
ARG imageRepo=arm32v7/ubuntu
4+
FROM arm32v7/ubuntu:bionic AS installer-env
65

7-
FROM ${imageRepo}:${fromTag} AS installer-env
86

97
ARG PS_VERSION=6.2.3
108
ENV PS_PACKAGE=powershell-${PS_VERSION}-linux-arm32.tar.gz
@@ -39,7 +37,7 @@ RUN ls -l /tmp/powershell.tar.gz
3937
# Unzip the Linux tar.gz
4038
RUN tar zxf /tmp/powershell.tar.gz -C ${PS_INSTALL_FOLDER}
4139

42-
FROM ${imageRepo}:${fromTag} AS final-image
40+
FROM arm32v7/ubuntu:bionic AS final-image
4341

4442
# Define Args and Env needed to create links
4543
ARG PS_INSTALL_VERSION=7-lts

‎release/lts/arm32v7/getLatestTag.ps1

-14
This file was deleted.

‎release/lts/arm32v7/meta.json

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"tagTemplates": [
1010
"lts-arm32v7-ubuntu-#shorttag#"
1111
],
12+
"shortTags": [
13+
{"Tag": "bionic"}
14+
],
1215
"TestProperties": {
1316
"size": 550,
1417
"Arm32": true

‎release/lts/centos7/docker/Dockerfile

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
# Docker image file that describes an CentOS7 image with PowerShell installed from Microsoft YUM Repo
2-
ARG fromTag=7
3-
ARG imageRepo=centos
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
43

5-
FROM ${imageRepo}:${fromTag} AS installer-env
4+
FROM centos:7 AS installer-env
65

76
ARG PS_VERSION=7.0.0
87
ARG PACKAGE_VERSION=7.0.0
98
ARG PS_PACKAGE=powershell-lts-${PACKAGE_VERSION}-1.rhel.7.x86_64.rpm
109
ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/${PS_PACKAGE}
1110

12-
ARG fromTag=7
13-
ARG imageRepo=centos
14-
1511
# Define ENVs for Localization/Globalization
1612
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
1713
LC_ALL=en_US.UTF-8 \
1814
LANG=en_US.UTF-8 \
1915
# set a fixed location for the Module analysis cache
2016
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
21-
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-CentOS-${fromTag}
17+
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-CentOS-7
2218

2319
# Install dependencies and clean up
2420
RUN curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.rpm \

‎release/lts/centos7/getLatestTag.ps1

-14
This file was deleted.

‎release/lts/centos7/meta.json

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"tagTemplates": [
77
"lts-centos-#shorttag#"
88
],
9+
"shortTags": [
10+
{"Tag": "7"}
11+
],
912
"SubImage": "test-deps",
1013
"TestProperties": {
1114
"size": 550

‎release/lts/centos8/docker/Dockerfile

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
# Docker image file that describes an CentOS7 image with PowerShell installed from Microsoft YUM Repo
2-
ARG fromTag=8
3-
ARG imageRepo=centos
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
43

5-
FROM ${imageRepo}:${fromTag} AS installer-env
4+
FROM centos:8 AS installer-env
65

76
ARG PS_VERSION=7.0.0
87
ARG PACKAGE_VERSION=7.0.0
98
ARG PS_PACKAGE=powershell-lts-${PACKAGE_VERSION}-1.rhel.7.x86_64.rpm
109
ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/${PS_PACKAGE}
1110

12-
ARG fromTag=7
13-
ARG imageRepo=centos
14-
1511
# Define ENVs for Localization/Globalization
1612
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
1713
LC_ALL=en_US.UTF-8 \
1814
LANG=en_US.UTF-8 \
1915
# set a fixed location for the Module analysis cache
2016
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
21-
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-CentOS-${fromTag}
17+
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-CentOS-8
2218

2319
# Install dependencies and clean up
2420
RUN curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.rpm \

‎release/lts/centos8/getLatestTag.ps1

-14
This file was deleted.

‎release/lts/centos8/meta.json

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"tagTemplates": [
77
"lts-centos-#shorttag#"
88
],
9+
"shortTags": [
10+
{"Tag": "8"}
11+
],
912
"SubImage": "test-deps",
1013
"TestProperties": {
1114
"size": 725

‎release/lts/ubuntu16.04/docker/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
# Docker image file that describes an Ubuntu16.04 image with PowerShell installed from Microsoft APT Repo
2-
ARG fromTag=16.04
3-
ARG imageRepo=ubuntu
45

5-
FROM ${imageRepo}:${fromTag} AS installer-env
6+
FROM ubuntu:16.04 AS installer-env
67

78
ARG PS_VERSION=7.0.0-rc.1
89
ARG PS_PACKAGE=powershell-lts_${PS_VERSION}-1.ubuntu.16.04_amd64.deb

‎release/lts/ubuntu16.04/getLatestTag.ps1

-14
This file was deleted.

‎release/lts/ubuntu16.04/meta.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
"UseLinuxVersion": false,
44
"PackageFormat": "powershell-lts_${PS_VERSION}-1.ubuntu.16.04_amd64.deb",
55
"osVersion": "Ubuntu 16.04",
6-
"SkipGssNtlmSspTests": false,
76
"tagTemplates": [
87
"lts-ubuntu-#shorttag#"
98
],
9+
"shortTags": [
10+
{"Tag": "xenial"},
11+
{"Tag": "16.04"}
12+
],
13+
"SkipGssNtlmSspTests": false,
1014
"TestProperties": {
1115
"size": 395
1216
},

‎release/lts/ubuntu18.04/docker/Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Docker image file that describes an Ubuntu18.04 image with PowerShell installed from Microsoft APT Repo
2-
ARG fromTag=18.04
3-
ARG imageRepo=ubuntu
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
43

5-
FROM ${imageRepo}:${fromTag} AS installer-env
4+
# Docker image file that describes an Ubuntu image with PowerShell installed from Microsoft APT Repo
5+
FROM ubuntu:18.04 AS installer-env
66

7+
# Define Args for the needed to add the package
78
ARG PS_VERSION=7.0.0-rc.1
89
ARG PS_PACKAGE=powershell-lts_${PS_VERSION}-1.ubuntu.18.04_amd64.deb
910
ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/${PS_PACKAGE}

‎release/lts/ubuntu18.04/getLatestTag.ps1

-14
This file was deleted.

‎release/lts/ubuntu18.04/meta.json

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"tagTemplates": [
88
"lts-ubuntu-#shorttag#"
99
],
10+
"shortTags": [
11+
{"Tag": "bionic"},
12+
{"Tag": "18.04"}
13+
],
1014
"TestProperties": {
1115
"size": 355
1216
},

‎release/stable/centos8/docker/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ RUN curl -sSL ${PS_PACKAGE_URL} -o /tmp/powershell.rpm \
3434
openssh-clients \
3535
&& yum upgrade-minimal -y --security \
3636
&& yum clean all \
37-
# && localedef --charmap=UTF-8 --inputfile=en_US $LANG \
3837
# remove powershell package
3938
&& rm /tmp/powershell.rpm \
4039
&& ln -sf /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh \

‎release/stable/centos8/meta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
],
1313
"SubImage": "test-deps",
1414
"TestProperties": {
15-
"size": 723
15+
"size": 725
1616
}
1717
}

‎release/stable/ubuntu18.04/test-deps/docker/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ RUN apt-get update \
1414
&& apt-get clean \
1515
&& rm -rf /var/lib/apt/lists/*
1616

17+
ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-TestDeps-Ubuntu-18.04
18+
1719
# Use PowerShell as the default shell
1820
# Use array to avoid Docker prepending /bin/sh -c
1921
CMD [ "pwsh" ]

‎release/unstable/clearlinux/docker/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Microsoft Corporation.
1+
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33
#
44
# Docker image file that describes an Intel Clear Linux image with PowerShell
@@ -26,7 +26,7 @@ ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \
2626
PSModuleAnalysisCachePath=/var/cache/microsoft/powershell/PSModuleAnalysisCache/ModuleAnalysisCache \
2727
# Opt out of SocketsHttpHandler in DotNet Core 2.1 to use HttpClientHandler
2828
DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0 \
29-
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-ClearLinux-${fromTag}
29+
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-ClearLinux
3030

3131
# Installation
3232
RUN \

0 commit comments

Comments
 (0)
Please sign in to comment.