Comments (4)
Hi,
Thanks for your effort. I will check how building on ltsc2022
and with added flag works and report back.
from windows-containers.
Hi, @snpefk are you seeing a specific error?
from windows-containers.
Can you also confirm if you see this issue with Windows Server 2022? We currently do not fix OS issues for WS 2019 since we're past mainstream support (https://learn.microsoft.com/en-us/lifecycle/products/windows-server-2019).
from windows-containers.
Hi,
We no longer support Windows Server 2019 but LLVM 16 is compatible with Windows Server 2022. I simulated your Dockerfile with the more recent versions and it installed Visual Studio 2022 Build Tools successfully. Here's the updated Dockerfile:
# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2022
# Workaround to build image
# See. https://stackoverflow.com/questions/76470752/chocolatey-installation-in-docker-started-to-fail-restart-due-to-net-framework
ENV chocolateyVersion=2.2.2
# Set the shell to PowerShell
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
# Install Chocolatey - a package manager for Windows
RUN 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 build dependencies using Chocolatey
RUN choco install cmake --installargs 'ADD_CMAKE_TO_PATH=User' -y; `
choco install ninja -y; `
choco install git -y; `
choco install python3 --version=3.12.0 -y; `
# ⬇️ Add yes flag so agrees to installation automatically
choco install visualstudio2022buildtools --allWorkloads --includeRecommended --includeOptional --passive -y;
I started up the container and confirmed that Visual Studio 2022 Build Tools was installed by doing the following:
$> & 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe' -version
@snpefk Let me know if something wasn't installed in the container properly. Otherwise, I'll close this Issue for now as everything works with '22.
from windows-containers.
Related Issues (20)
- Can't create MFC mdiframe Window in process isolation mode HOT 3
- Container size HOT 9
- Get-Volume does not work in container : No MSFT_Volume objects found with property 'DriveLetter' equal.... HOT 2
- Windows Admin Center v2 - Container Extension HOT 3
- Faster hyper-v container startup time HOT 2
- Uninstall Scripts for Container Runtimes HOT 1
- Tutorial: Web Development on Windows Containers HOT 1
- Starting a container with memory limit below 8M leaves zombie system processes and unstoppable container HOT 4
- Can build with bulidctl but nerdctl build cannot HOT 3
- Container start hangs if it was created from another container (Portainer scenario) HOT 5
- Requesting elaboration for HCN error 2151350293 (0x803b0015) HOT 16
- Can not start three containers with published ports, if using two NAT networks HOT 3
- Cannot find Docker image for Windows 10.0.19045 HOT 1
- Dockerfile: `USER ContainerUser` results in "failure in a Windows system call: The user name or password is incorrect. (0x52e)" HOT 7
- Windows does not load the dlls api-ms-win-xxxxxxxxxxxx-l1-2-0.dll HOT 3
- COPY on ltsc2019 fails: "mount callback failed" HOT 10
- Usage of DISM fails inside container due to missing device driver HOT 4
- The referenced assembly could not be found. Error: 0x80073701 HOT 6
- NTAccount/Sid Translation fails with RPC Endpoint Mapper Authentication policy enabled and IIS installed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-containers.