Update Arch Linux installation instructions (#5048)

This commit is contained in:
Kyle Sferrazza
2017-10-10 09:40:23 -07:00
committed by Travis Plunk
parent aea561f08d
commit 07536019bd
3 changed files with 47 additions and 2 deletions
+4
View File
@@ -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:
+36
View File
@@ -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
+7 -2
View File
@@ -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