vmware / powerclicore

PowerCLI Core Dockerfile
Apache License 2.0
97 stars 48 forks source link

fix: Update `Dockerfile` to address known issues #67

Closed tenthirtyam closed 1 year ago

tenthirtyam commented 1 year ago

Summary of Pull Request

chore

fix

enhancement

docs

Edit (nklinkachev): As discussed offline I took some liberty in editing the pull request with what we can and cannot change at this point.

Docker Build Results:

powerclicore on  main 
❯ docker build . --no-cache
[+] Building 121.0s (9/9) FINISHED                                                                                                                                         
 => [internal] load build definition from Dockerfile                                                                                                                  0.0s
 => => transferring dockerfile: 37B                                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                                       0.0s
 => [internal] load metadata for mcr.microsoft.com/powershell:latest                                                                                                  0.3s
 => CACHED [1/5] FROM mcr.microsoft.com/powershell@sha256:311da919fe30e46a2d424b8e76d942bb1ad0c52b77509c8d140ef7d745799d15                                            0.0s
 => => resolve mcr.microsoft.com/powershell@sha256:311da919fe30e46a2d424b8e76d942bb1ad0c52b77509c8d140ef7d745799d15                                                   0.0s
 => [2/5] RUN pwsh -c 'Set-PSRepository -Name PSGallery -InstallationPolicy Trusted'                                                                                  5.2s
 => [3/5] WORKDIR /root                                                                                                                                               0.0s
 => [4/5] RUN apt-get update &&     apt-get install -y --no-install-recommends git tzdata dnsutils &&     git clone https://github.com/vmware/PowerCLI-Example-Scri  15.4s
 => [5/5] RUN pwsh -c "Install-Module -Name PSDesiredStateConfiguration" &&     pwsh -c "Enable-ExperimentalFeature PSDesiredStateConfiguration.InvokeDscResource"   96.6s
 => exporting to image                                                                                                                                                3.5s 
 => => exporting layers                                                                                                                                               3.5s 
 => => writing image sha256:81090c8c4fd46f22da7a7650cc532af0711cb7d54ba71ecbb632cff2e56c3fa5   

Signed-off-by: Ryan Johnson johnsonryan@vmware.com

Type of Pull Request

Related to Existing Issues

Test and Documentation Coverage

Breaking Changes?

PowervRA was removed; non-VMware originated module and bound to a legacy version.

0xch4z commented 1 year ago

@nklinkachevAtVMware Any info on when a release will be out for these changes? 👀