From 25d616df848cbc86c5a66e80869a6f2899e5a733 Mon Sep 17 00:00:00 2001 From: lalyos Date: Fri, 19 Aug 2016 21:37:28 +0200 Subject: [PATCH] Create a PowerShell Docker image. --- Dockerfile | 7 +++++++ README.md | 18 ++++++++++-------- docs/installation/docker.md | 20 ++++++++++++++++++++ 3 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 Dockerfile create mode 100644 docs/installation/docker.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..e5dfb55d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM ubuntu:16.04 + +RUN apt-get update && apt-get install -y curl libunwind8 libicu55 +RUN curl -LO https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb +RUN dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb + +Entrypoint [ "powershell" ] diff --git a/README.md b/README.md index 46f812a3c..ca7fca044 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,15 @@ Get PowerShell You can download and install a PowerShell package for any of the following platforms. -| Platform | Downloads | How to Install | -|------------------------------|----------------------|-----------------------------| -| Windows 10 / Server 2016 | [.msi][rl-windows10] | [Instructions][in-windows] | -| Windows 8.1 / Server 2012 R2 | [.msi][rl-windows81] | [Instructions][in-windows] | -| Ubuntu 16.04 | [.deb][rl-ubuntu16] | [Instructions][in-ubuntu16] | -| Ubuntu 14.04 | [.deb][rl-ubuntu14] | [Instructions][in-ubuntu14] | -| CentOS 7 | [.rpm][rl-centos] | [Instructions][in-centos] | -| OS X 10.11 | [.pkg][rl-osx] | [Instructions][in-osx] | +| Platform | Downloads | How to Install | +| ------------------------------ | ---------------------- | ----------------------------- | +| Windows 10 / Server 2016 | [.msi][rl-windows10] | [Instructions][in-windows] | +| Windows 8.1 / Server 2012 R2 | [.msi][rl-windows81] | [Instructions][in-windows] | +| Ubuntu 16.04 | [.deb][rl-ubuntu16] | [Instructions][in-ubuntu16] | +| Ubuntu 14.04 | [.deb][rl-ubuntu14] | [Instructions][in-ubuntu14] | +| CentOS 7 | [.rpm][rl-centos] | [Instructions][in-centos] | +| OS X 10.11 | [.pkg][rl-osx] | [Instructions][in-osx] | +| Docker | | [Instructions] [in-docker] | [rl-windows10]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/PowerShell_6.0.0.9-alpha.9-win10-x64.msi [rl-windows81]: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/PowerShell_6.0.0.9-alpha.9-win81-x64.msi @@ -42,6 +43,7 @@ You can download and install a PowerShell package for any of the following platf [in-ubuntu16]: docs/installation/linux.md#ubuntu-1604 [in-centos]: docs/installation/linux.md#centos-7 [in-osx]: docs/installation/linux.md#os-x-1011 +[in-docker]: docs/installation/docker.md To install a specific version, visit [releases](https://github.com/PowerShell/PowerShell/releases). diff --git a/docs/installation/docker.md b/docs/installation/docker.md new file mode 100644 index 000000000..77fa5d33a --- /dev/null +++ b/docs/installation/docker.md @@ -0,0 +1,20 @@ +Docker +====== + +If you are using Docker, there is a wery simple way to try PowerShell: + +``` +docker run -it powershell +``` + +This Docker image is based on Ubuntu 16.04, and follows the instructions from the [Linux Installation docs][u16]. +[u16]: linux.md#ubuntu-1604 + +Build +===== + +If you want to build it yourself: +``` +docker build -t powershell . +``` +