diff --git a/docker/README.md b/docker/README.md index 4d62af83b9..ab6ada0c92 100644 --- a/docker/README.md +++ b/docker/README.md @@ -23,6 +23,10 @@ and about 120 megabytes of .NET Core and bootstrapping dependencies. [docker-release]: https://hub.docker.com/r/microsoft/powershell/ +## Community + +The docker files in the community folder were contributed by the community and are not yet officially supported. + ## Examples To run PowerShell from using a container: diff --git a/docker/community/archlinux/Dockerfile b/docker/community/archlinux/Dockerfile new file mode 100644 index 0000000000..9fbf0ca532 --- /dev/null +++ b/docker/community/archlinux/Dockerfile @@ -0,0 +1,36 @@ +FROM archlinux/base AS build-env + +# Install requirements to bulid package +RUN pacman -Syuq --noconfirm base-devel git + +# makepkg won't run as root, so setup a user and folder to run it. +RUN useradd -m -g wheel build +RUN mkdir /build +RUN chown build:wheel /build +USER build +RUN ls -l +RUN git clone https://aur.archlinux.org/powershell-bin.git /build/powershell-bin +RUN cd /build/powershell-bin; \ + makepkg -s +RUN ls /build/powershell-bin + +FROM archlinux/base + +LABEL maintainer="PowerShell Community " \ + readme.md="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md" \ + description="This Dockerfile will install the latest release of PS." \ + org.label-schema.usage="https://github.com/PowerShell/PowerShell/tree/master/docker#run-the-docker-image-you-built" \ + org.label-schema.url="https://github.com/PowerShell/PowerShell/blob/master/docker/README.md" \ + org.label-schema.vcs-url="https://github.com/PowerShell/PowerShell" \ + org.label-schema.name="powershell" \ + org.label-schema.vendor="PowerShell" \ + org.label-schema.schema-version="1.0" \ + org.label-schema.docker.cmd="docker run ${IMAGE_NAME} powershell -c '$psversiontable'" \ + org.label-schema.docker.cmd.devel="docker run ${IMAGE_NAME}" \ + org.label-schema.docker.cmd.test="docker run ${IMAGE_NAME} powershell -c Invoke-Pester" \ + org.label-schema.docker.cmd.help="docker run ${IMAGE_NAME} powershell -c Get-Help" + +COPY --from=build-env /build/powershell-bin/*.xz /powershell-package/ +RUN ls /powershell-package/* +RUN pacman -Syu --noconfirm libunwind; \ + pacman -U --noconfirm /powershell-package/*.xz \ No newline at end of file diff --git a/docs/installation/linux.md b/docs/installation/linux.md index 7547378c71..3782f78a94 100644 --- a/docs/installation/linux.md +++ b/docs/installation/linux.md @@ -535,15 +535,20 @@ sudo dnf remove powershell ## Arch Linux -PowerShell is available from the [Arch Linux][] User Repository (AUR) as a [release][arch-release] or the [latest development build][arch-git]. +PowerShell is available from the [Arch Linux][] User Repository (AUR). + +* It can be compiled with the [latest tagged release][arch-release] +* It can be compiled from the [latest commit to master][arch-git] +* It can be installed using the [latest release binary][arch-bin] Packages in the AUR are community maintained - there is no official support. -For more information on installing packages from the AUR, see the [Arch Linux wiki](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages). +For more information on installing packages from the AUR, see the [Arch Linux wiki](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages) or the community [DockerFile](https://github.com/PowerShell/PowerShell/blob/master/docker/community/archlinux/Dockerfile). [Arch Linux]: https://www.archlinux.org/download/ [arch-release]: https://aur.archlinux.org/packages/powershell/ [arch-git]: https://aur.archlinux.org/packages/powershell-git/ +[arch-bin]: https://aur.archlinux.org/packages/powershell-bin/ ## Linux AppImage