Skip to content

Instantly share code, notes, and snippets.

View adriaanthomas's full-sized avatar

Adriaan Thomas adriaanthomas

View GitHub Profile
@adriaanthomas
adriaanthomas / Dockerfile
Last active May 19, 2017 14:02
Accessing Windows PowerShell with AzureRM from a Linux client
FROM microsoft/windowsservercore
SHELL ["powershell.exe", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
RUN choco install -y openssh -params '"/SSHServerFeature"'
RUN Invoke-WebRequest 'https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.1/PowerShell-6.0.0-beta.1-win10-win2016-x64.msi' -Outfile powershell.msi; \
Start-Process powershell.msi /qn -Wait
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '--force' ]
2 info using npm@2.14.20
3 info using node@v4.4.0
4 warn using --force I sure hope you know what you are doing.
5 verbose readDependencies loading dependencies from D:\work\4\s\package.json
6 verbose readDependencies npm-shrinkwrap.json is overriding dependencies