Merge pull request #1966 from lalyos/master
Create a PowerShell Docker image.
This commit is contained in:
commit
87f2e207e2
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -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" ]
|
|
@ -28,6 +28,7 @@ You can download and install a PowerShell package for any of the following platf
|
|||
| 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).
|
||||
|
||||
|
|
20
docs/installation/docker.md
Normal file
20
docs/installation/docker.md
Normal file
|
@ -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 .
|
||||
```
|
||||
|
Loading…
Reference in a new issue