mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 09:43:57 +08:00
Create a PowerShell Docker image.
This commit is contained in:
parent
d7b31245d3
commit
25d616df84
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" ]
|
18
README.md
18
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).
|
||||
|
||||
|
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 New Issue
Block a user