Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created March 5, 2022 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowatana/0304864c9f971c73e75d45f50db1f2bf to your computer and use it in GitHub Desktop.
Save gowatana/0304864c9f971c73e75d45f50db1f2bf to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/powershell:7.2.1-centos-7-20220223
RUN pwsh -c Set-PSRepository -Name PSGallery -InstallationPolicy Trusted && \
pwsh -c Install-Module -Name Nutanix.Cli -RequiredVersion 2.0.1
RUN mkdir -p /root/.config/powershell; \
echo 'function prompt {"pwsh-nutanix> "}' >> /root/.config/powershell/Microsoft.PowerShell_profile.ps1
CMD pwsh -NoExit -c Import-Module Nutanix.Cli
@gowatana
Copy link
Author

gowatana commented Mar 5, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment