diff --git a/docker-compose-windows-internal.yml b/docker-compose-windows-internal.yml index 5e4cba3b20ddb..bccb3b6ee2b6c 100644 --- a/docker-compose-windows-internal.yml +++ b/docker-compose-windows-internal.yml @@ -27,7 +27,7 @@ x-common-definitions: &common-definitions volumes: - ${COBALT_SRC:-.}:c:/code/ - ${SCCACHE_DIR:-container-sccache}:c:/root/sccache/ - cpus: ${DOCKER_CPUS:-12} + cpus: ${DOCKER_CPUS:-20} mem_limit: ${DOCKER_MEMLIMIT:-100000M} x-shared-build-env: &shared-build-env @@ -142,6 +142,7 @@ services: environment: <<: *shared-build-env PLATFORM: ps4 + VISUAL_STUDIO_VERSION: "2022" image: cobalt-build-ps4 depends_on: - cobalt-build-vs2022-win-internal @@ -157,6 +158,7 @@ services: environment: <<: *shared-build-env PLATFORM: ps5 + VISUAL_STUDIO_VERSION: "2022" image: cobalt-build-ps5 depends_on: - cobalt-build-vs2022-win-internal @@ -173,6 +175,7 @@ services: <<: *shared-build-env PLATFORM: xb1 COBALT_CONCURRENT_LINKS: ${COBALT_CONCURRENT_LINKS:-1} + VISUAL_STUDIO_VERSION: "2022" image: cobalt-build-xb1 depends_on: - cobalt-build-vs2022-win-internal @@ -188,6 +191,7 @@ services: environment: <<: *shared-build-env PLATFORM: nxswitch + VISUAL_STUDIO_VERSION: "2022" image: cobalt-build-nxswitch depends_on: - cobalt-build-vs2022-win-internal diff --git a/docker-compose-windows.yml b/docker-compose-windows.yml index 9d62c111ed18a..3c12694ea6261 100644 --- a/docker-compose-windows.yml +++ b/docker-compose-windows.yml @@ -23,7 +23,7 @@ x-common-definitions: &common-definitions volumes: - ${COBALT_SRC:-.}:c:/code/ - ${SCCACHE_DIR:-container-sccache}:c:/root/sccache/ - cpus: ${DOCKER_CPUS:-12} + cpus: ${DOCKER_CPUS:-20} mem_limit: ${DOCKER_MEMLIMIT:-100000M} x-shared-build-env: &shared-build-env @@ -168,6 +168,7 @@ services: environment: <<: *shared-build-env PLATFORM: win-win32 + VISUAL_STUDIO_VERSION: "2022" image: cobalt-build-win32-vs2022 runner-win-win32: diff --git a/docker/windows/base/build/Dockerfile b/docker/windows/base/build/Dockerfile index 9abaf7bd94401..1952773db5ef0 100644 --- a/docker/windows/base/build/Dockerfile +++ b/docker/windows/base/build/Dockerfile @@ -59,6 +59,7 @@ RUN mkdir C:\pip-cache;` git config --global core.filemode false;` git config --global core.preloadindex true;` git config --global core.fscache true;` + git config --global --add safe.directory C:/code;` # Registry changes to enable long filesystem paths. reg add 'HKLM\SYSTEM\CurrentControlSet\Control\FileSystem' /v LongPathsEnabled /t REG_DWORD /reg:64 /d 1 /f;` reg add 'HKLM\SYSTEM\CurrentControlSet\Control\FileSystem' /v LongPathsEnabled /t REG_DWORD /d 1 /f;`