Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
36 changes: 36 additions & 0 deletions docker/community/archlinux/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <powershellteam@hotmail.com>" \
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
9 changes: 7 additions & 2 deletions docs/installation/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down