Skip to content

Commit 5771ae5

Browse files
base image update (#342)
* base image update * update test * Update tools.Dockerfile --------- Co-authored-by: darrentu <[email protected]> Co-authored-by: Darren Tu <[email protected]>
1 parent 3479fc9 commit 5771ae5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

linux/powershell/PSCloudShellUtility/PSCloudShellUtility.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ function Get-PackageVersion() {
18151815
@{displayname = "Helm"; command = "helm"; args = "version --short"; match = "v(.+)"},
18161816
@{displayname = "AZCopy"; command = "azcopy"; args = "--version"; match = "azcopy version (.+)"},
18171817
@{displayname = "Azure CLI"; command = "az"; args = "version "; match = "`"azure-cli`": `"(.+)`""},
1818-
@{displayname = "Kubectl"; command = "kubectl"; args = "version --client=true --short=true"; match = "Client Version: v(.+)"}
1818+
@{displayname = "Kubectl"; command = "kubectl"; args = "version --client=true | head -n 1"; match = "Client Version: v(.+)"}
18191819
@{displayname = "Terraform"; command = "terraform"; args = "version"; match = "Terraform v(.+)"},
18201820
@{displayname = "GitHub CLI"; command = "gh"; args = "--version"; match = "gh version (.+) \(.*"},
18211821
@{displayname = "Azure Developer CLI"; command = "azd"; args = "version"; match = "azd version (\d+\.\d+\.\d+(-[\w\d\.]*)?).*"}

linux/tools.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# To build yourself locally, override this location with a local image tag. See README.md for more detail
66

7-
ARG IMAGE_LOCATION=cdpxb787066ec88f4e20ae65e42a858c42ca00.azurecr.io/official/cloudshell:base.master.55fe0a50.20230503.1
7+
ARG IMAGE_LOCATION=cdpxb787066ec88f4e20ae65e42a858c42ca00.azurecr.io/official/cloudshell:base.master.3479fc9b.20230808.1
88

99
# Copy from base build
1010
FROM ${IMAGE_LOCATION}
@@ -47,7 +47,8 @@ RUN curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep
4747
&& bicep --help
4848

4949
# Temp: fix ansible modules. Proper fix is to update base layer to use regular python for Ansible.
50-
RUN wget -nv -q https://raw.githubusercontent.com/ansible-collections/azure/dev/requirements-azure.txt \
50+
RUN mkdir -p /usr/share/ansible/collections/ansible_collections/azure/azcollection/ \
51+
&& wget -nv -q -O /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt https://raw.githubusercontent.com/ansible-collections/azure/dev/requirements-azure.txt \
5152
&& /opt/ansible/bin/python -m pip install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
5253

5354
# Copy and run script to Install powershell modules and setup Powershell machine profile

tests/PSinLinuxCloudShellImage.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Describe "Various programs installed with expected versions" {
1818

1919
It "Static Versions" {
2020
# These programs are installed explicitly with specific versions
21-
$script:pmap["Node.JS"].Version | Should -Be '16.19.1'
21+
$script:pmap["Node.JS"].Version | Should -Be '16.20.1'
2222
$script:pmap["PowerShell"].Version | Should -BeLike '7.3*'
2323
}
2424

0 commit comments

Comments
 (0)