Skip to content

Commit

Permalink
Install git on windows images (game-ci#149)
Browse files Browse the repository at this point in the history
* Install git on windows images

* Move chocolatey to the base windows image
  • Loading branch information
davidmfinol authored Jan 26, 2022
1 parent d8e91b6 commit 163f9c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions images/windows/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ COPY --from=dll-source c:/windows/system32/BluetoothApis.dll \

# Enable executing powershell scripts
RUN powershell -Command Set-ExecutionPolicy unrestricted

# Install chocolatey
RUN powershell -Command Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
3 changes: 3 additions & 0 deletions images/windows/editor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ RUN powershell -Command foreach ($service in 'nlasvc', 'netprofm') {"Set-Service

# Not needed with the dotnet base image
# RUN powershell -Command Set-Service 'wmiApSrv' -StartupType Automatic

# Packages/manifest.json could have git dependencies
RUN choco install git
3 changes: 0 additions & 3 deletions images/windows/hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@ ARG baseImage="unityci/base:windows-latest"

FROM $baseImage

# Install chocolatey
RUN powershell -Command Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

# Install unity hub
RUN choco install unity-hub --no-progress -y

0 comments on commit 163f9c2

Please sign in to comment.