Skip to content

Add Docker images that work with PSSA to ReadMe and give examples #987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2018
Merged
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
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Table of Contents
- [Usage](#usage)
- [Installation](#installation)
+ [From PowerShell Gallery](#from-powershell-gallery)
- [Requirements](#requirements)
- [Supported PowerShell Versions and Platforms](#supported-powerShell-versions-and-platforms)
* [Windows](#windows)
* [Linux (*Tested only on Ubuntu 14.04*)](#linux-tested-only-on-ubuntu-1404)
+ [From Source](#from-source)
Expand Down Expand Up @@ -70,14 +70,19 @@ Install-Module -Name PSScriptAnalyzer

**Note**: For PowerShell version `5.1.14393.206` or newer, before installing PSScriptAnalyzer, please install the latest Nuget provider by running the following in an elevated PowerShell session.
```powershell
Install-PackageProvider Nuget –force –verbose
Install-PackageProvider Nuget -MinimumVersion 2.8.5.201 –Force
Exit
```

#### Requirements
#### Supported PowerShell Versions and Platforms

- Windows PowerShell 3.0 or greater
- PowerShell Core on Windows/Linux/macOS
- Docker (tested only using Docker CE on Windows 10 1803):
- [microsoft/windowsservercore](https://hub.docker.com/r/microsoft/windowsservercore/) for Windows. Example:
```docker run -it microsoft/windowsservercore powershell -command "Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force; Install-Module PSScriptAnalyzer -Force; Invoke-ScriptAnalyzer -ScriptDefinition 'gci'"```
- [microsoft/powershell](https://hub.docker.com/r/microsoft/powershell/) for Linux. Example:
```docker run -it microsoft/powershell pwsh -c "Install-Module PSScriptAnalyzer -Force; Invoke-ScriptAnalyzer -ScriptDefinition 'gci'"```

### From Source

Expand Down