diff --git a/docs/README.powershellcommunity.md b/docs/README.powershellcommunity.md index 65906623c..c311f4b44 100644 --- a/docs/README.powershellcommunity.md +++ b/docs/README.powershellcommunity.md @@ -38,12 +38,12 @@ $ docker pull pshorg/powershellcommunity * Tags: `oraclelinux-7.5` , `6.1.1-oraclelinux-7.5` * Dockerfile: [/release/community-stable/oraclelinux/docker/Dockerfile][oracle-linux-stable-dockerfile] * Example: `docker pull pshorg/powershellcommunity:oraclelinux-7.5` - + * Example: `docker pull pshorg/powershellcommunity:parrotsec-latest` + * **[Photon Linux][parrotsec-linux-uri]** * Tags: `photon-2.0` , `6.1.1-photon-2.0` * Dockerfile: [/release/community-stable/photon/docker/Dockerfile][photon-linux-stable-dockerfile] @@ -55,7 +55,7 @@ $ docker pull pshorg/powershellcommunity [clear-linux-stable-dockerfile]: https://github.com/PowerShell/PowerShell-Docker/blob/master/release/community-stable/clearlinux/docker/Dockerfile [kali-linux-stable-dockerfile]: https://github.com/PowerShell/PowerShell-Docker/blob/master/release/community-stable/kali-rolling/docker/Dockerfile [oracle-linux-stable-dockerfile]: https://github.com/PowerShell/PowerShell-Docker/blob/master/release/community-stable/oraclelinux/docker/Dockerfile -[parrotsec-linux-stable-dockerfile]: https://github.com/PowerShell/PowerShell-Docker/blob/master/release/community-stable/parrot/docker/Dockerfile +[parrotsec-linux-stable-dockerfile]: https://github.com/PowerShell/PowerShell-Docker/blob/master/release/community-stable/parrotsec/docker/Dockerfile [photon-linux-stable-dockerfile]: https://github.com/PowerShell/PowerShell-Docker/blob/master/release/community-stable/photon/docker/Dockerfile [amazon-linux-uri]: https://aws.amazon.com/amazon-linux-2/ diff --git a/release/unstable/parrot/docker/Dockerfile b/release/community-stable/parrotsec/docker/Dockerfile similarity index 82% rename from release/unstable/parrot/docker/Dockerfile rename to release/community-stable/parrotsec/docker/Dockerfile index a3262b4bc..40b75c73e 100644 --- a/release/unstable/parrot/docker/Dockerfile +++ b/release/community-stable/parrotsec/docker/Dockerfile @@ -4,23 +4,16 @@ # Docker image file that describes an Parrot image with PowerShell # installed from Debian9 PowerShell package -# Define arg(s) needed for the From statement -ARG fromTag=latest -ARG imageRepo=parrotsec/parrot-core - -FROM ${imageRepo}:${fromTag} AS installer-env +FROM parrotsec/core:latest AS installer-env # Clear the entrypoint in parrotsec/parrot-core image ENTRYPOINT [ ] # Define Args for the needed to add the package -ARG PS_VERSION=6.2.3 -ARG PS_PACKAGE=powershell_${PS_VERSION}-1.debian.9_amd64.deb +ARG PS_VERSION=7.0.1 +ARG PS_PACKAGE=powershell_${PS_VERSION}-1.debian.11_amd64.deb ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/${PS_PACKAGE} -ARG PS_INSTALL_VERSION=6 - -# Define Args for the needed to add the package -ARG DEBIAN_PACKAGE_URL=http://ftp.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u3_amd64.deb +ARG PS_INSTALL_VERSION=7 # Define Args and Env needed to create links ENV PS_INSTALL_FOLDER=/opt/microsoft/powershell/$PS_INSTALL_VERSION \ @@ -52,18 +45,12 @@ RUN \ locales \ # required to support NTLM for PSRemoting gss-ntlmssp \ - # required for dist-upgrade - resolvconf \ + wget \ + libicu63 \ # enable en_US.UTF-8 locale && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ # generate locale && locale-gen && update-locale \ - # Download the libicu57 Debian package and save it - && wget -O /tmp/libicu57_57.1-6+deb9u3_amd64.deb --no-check-certificate ${DEBIAN_PACKAGE_URL} \ - # install required libicu57 package - && dpkg -i /tmp/libicu57_57.1-6+deb9u3_amd64.deb \ - # remove libicu57 package - && rm -f /tmp/libicu57_57.1-6+deb9u3_amd64.deb \ # upgrade distro && apt-get dist-upgrade -y \ # Download the Debian9 PowerShell Core package and save it @@ -91,7 +78,7 @@ RUN \ && rm -rf /var/lib/apt/lists/* # Define args needed only for the labels -ARG IMAGE_NAME=pshorg/powershellcommunity:parrot-4.4 +ARG IMAGE_NAME=pshorg/powershellcommunity:parrotsec-latest ARG VCS_REF="none" # Add label last as it's just metadata and uses a lot of parameters diff --git a/release/community-stable/parrotsec/meta.json b/release/community-stable/parrotsec/meta.json new file mode 100644 index 000000000..e69f0f3c6 --- /dev/null +++ b/release/community-stable/parrotsec/meta.json @@ -0,0 +1,12 @@ +{ + "IsLinux" : true, + "PackageFormat": "powershell_${PS_VERSION}-1.debian.11_amd64.deb", + "SkipGssNtlmSspTests": false, + "shortTags": [ + {"Tag": "latest"} + ], + "tagTemplates": [ + "#psversion#-parrotsec-#tag#", + "parrotsec" + ] +} diff --git a/release/preview/debian11/meta.json b/release/preview/debian11/meta.json index 76d23415b..dc09fa68f 100644 --- a/release/preview/debian11/meta.json +++ b/release/preview/debian11/meta.json @@ -10,7 +10,7 @@ ], "SubImage": "test-deps", "TestProperties": { - "size": 314 + "size": 330 } } diff --git a/release/unstable/parrot/getLatestTag.ps1 b/release/unstable/parrot/getLatestTag.ps1 deleted file mode 100644 index 19d233df0..000000000 --- a/release/unstable/parrot/getLatestTag.ps1 +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -# return objects representing the tags we need to base the parrot image on - -# The versions of parrot we care about -$shortTags = @('4') - -$parent = Join-Path -Path $PSScriptRoot -ChildPath '..' -$repoRoot = Join-Path -path (Join-Path -Path $parent -ChildPath '..') -ChildPath '..' -$modulePath = Join-Path -Path $repoRoot -ChildPath 'tools\getDockerTags' -Import-Module $modulePath - -Get-DockerTags -ShortTags $shortTags -Image "parrotsec/parrot-core" -FullTagFilter '^4\..*$' diff --git a/release/unstable/parrot/meta.json b/release/unstable/parrot/meta.json deleted file mode 100644 index 47d965127..000000000 --- a/release/unstable/parrot/meta.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "IsLinux" : true, - "PackageFormat": "powershell_${PS_VERSION}-1.debian.9_amd64.deb", - "SkipGssNtlmSspTests": false, - "IsBroken": true, - "tagTemplates": [ - "#psversion#-parrot-#tag#", - "parrot-#shorttag#" - ], - "continueOnError": true -}