kine / navertical_tasks

GNU General Public License v3.0
9 stars 4 forks source link

Publish to local via remote execution #12

Open seawerst opened 10 months ago

seawerst commented 10 months ago

Since you add the remote host in publishdockerTask/v3, even if the docker is local (empty or .) you use the Invoke-Command with a New-PSSession. This command will fail if the VM/server is not configure perfectly to allow remoting. And in a lock down environment, it's not the case.

Does using the V2.22, even if it's still using the old commands (ie Get-NavContainerAppInfo) will work with a full dependency app graph? This version is a lot different then the 9.4.0

kine commented 6 months ago

I will check the current version of the task and I will try to remove the usage of Invoke-command where it is not necessary (when the computer is local).

As you wrote, the v2 and v9 is too different and I cannot say how it will work now.

What I understand from your text is, that you have high security environment where remoting is not allowed on VM level (only remoting into the containers).

seawerst commented 6 months ago

Thanks, let me know if you would like me to test your branch.

kine commented 6 months ago

I have published new version of the extension with version 10 of the task. I have added one parameter for Unified nuget naming (not interesting for you yet), but I tried to remove the New-PSSession and usage of the pssession if it is local agent.

You will need to use it together with NVRAppDevOps module v2.8.0 which I have just published.