Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Add 'Polaris running in a container' examples #144

Open
Stijnc opened this issue Oct 29, 2018 · 3 comments
Open

Add 'Polaris running in a container' examples #144

Stijnc opened this issue Oct 29, 2018 · 3 comments

Comments

@Stijnc
Copy link

Stijnc commented Oct 29, 2018

@tylerl0706, as discussed on twitter, a placeholder issue to add the docker and kubernetes example I used to the polaris repo.

How would you like it to be structured?
Do I create a subfolder 'container' under 'example'?

@SP3269
Copy link

SP3269 commented Nov 20, 2019

Isn't is as easy as adding a Dockerfile example? Here's something I run in Google Cloud:

FROM microsoft/powershell

SHELL ["/opt/microsoft/powershell/6/pwsh", "-command"]
RUN Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
RUN Install-Module jwt -SkipPublisherCheck
RUN Install-Module Polaris -SkipPublisherCheck

COPY Run.ps1 /Run.ps1

EXPOSE 8080

ENTRYPOINT ["pwsh", "/Run.ps1" ]

@TylerLeonhardt
Copy link
Member

Yep that should be all there is to it!

btw, what version of PowerShell does that give you - I would think you'd want to do:

FROM mcr.microsoft.com/powershell

@SP3269
Copy link

SP3269 commented Feb 3, 2020

docker pull microsoft/powershell pulls 6.2.4, which is the current RTM version today. Same image id as the one from mcr.microsoft.com/powershell, too. Not sure how the sync is set up though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants