ironmansoftware / psedit

A terminal-based editor for PowerShell
MIT License
254 stars 17 forks source link

Does not work on nano-server docker image #1

Open artisticcheese opened 1 year ago

artisticcheese commented 1 year ago

Getting following error during PSEdit installation docker run -it mcr.microsoft.com/powershell:7.3-nanoserver-1809

PowerShell 7.3.0
PS C:\> install-module psedit

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): a
Install-Package: The module 'psedit' cannot be installed or updated because the authenticode signature of the file 'psedit.psd1' is not valid.
PS C:\>
adamdriscoll commented 1 year ago

We might need to code sign the module. What's your execution policy set to?

artisticcheese commented 1 year ago

This is default nano-server container. It comes with RemoteSigned out of the box.mcr.microsoft.com/powershell:7.3-nanoserver-1809