# This entry point starts the developer command prompt and launches the PowerShell shell. # Define the entry point for the docker container. installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools" ` RUN C:\TEMP\vs_buildtools.exe modify -quiet -wait -norestart -nocache ` # Install Build Tools with the workload, excluding workloads and components with known issues. # Restore the default Windows shell for correct batch processing. NET Framework 4.8 and 3.5įROM /dotnet/framework/sdk:3.5-windowsservercore-20H2 # Use the latest Windows Server Core image with. But now I don't understand how that could be given the entrypoint being overridden then and now. What doesn't make sense is that we previously build this same docker image and msbuild worked ok. I guess this is so it can run the build commands in the cmd file. v "C:\BuildAgent\plugins:C:\BuildAgent\plugins:ro" v "C:\BuildAgent\tools:C:\BuildAgent\tools:ro" v "C:\BuildAgent\lib:C:\BuildAgent\lib:ro" v "C:\BuildAgent\system:C:\BuildAgent\system" v "C:\BuildAgent\temp\buildTmp:C:\BuildAgent\temp\buildTmp" ![]() ![]() v "C:\BuildAgent\temp\agentTmp:C:\BuildAgent\temp\agentTmp" Looking at the build output shows that TC is indeed creating it's own entrypoint Starting: cmd /c "docker run -rm -w "C:\BuildAgent\work\cf3bf0200a465dcb" If I use 'SET', it shows that the environment variables for VS are not set, and is actually running as a generic command line, not even using the entrypoint. My final solution is following you last 'simple' case, neither write ENTRYPOINT nor CMD, just RUN sudo chown -R user:user /home/user/che, and invoke it like this: docker run -it -rm -privileged -nethost my/che bash -c ' sudo service docker start & cd /home/user/che/bin/ &. When our TC build task runs this docker image with a custom script, the script including an 'msbuild' line, it cannot resolve msbuild. If we run interactively, it uses the entrypoint in the dockerfile and can run 'msbuild'.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |