Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with your windows image build #1

Open
ShamanTcler opened this issue Oct 2, 2019 · 0 comments
Open

Issues with your windows image build #1

ShamanTcler opened this issue Oct 2, 2019 · 0 comments

Comments

@ShamanTcler
Copy link

Using docker desktop 2.1.0.3 (38240) engine 19.03.2

I can not seem to get the install to happen in C:\BuildTools, I trimmed down the Dockerfile to:

# escape=`
# Let us use PowerShell line continuation.

FROM mcr.microsoft.com/dotnet/framework/sdk:4.8

# Restore the default Windows shell for correct batch processing.
SHELL ["cmd", "/S", "/C"]

# Download the Visual Studio Build Tools bootstrapper.
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\Temp\vs_buildtools.exe

# Use the latest release channel.
ADD https://aka.ms/vs/16/release/channel C:\Temp\VisualStudio.chman

# For help on command-line syntax:
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio
# Install MSVC C++ compiler, CMake, and MSBuild.
RUN C:\Temp\vs_buildtools.exe `
    --quiet --wait --norestart --nocache `
    --installPath C:\BuildTools `
    --channelUri C:\Temp\VisualStudio.chman `
    --installChannelUri C:\Temp\VisualStudio.chman `
    --add Microsoft.VisualStudio.Workload.VCTools;includeRecommended `
    --add Microsoft.Component.MSBuild `
 || IF "%ERRORLEVEL%"=="3010" EXIT 0

When I run this I see: (notice I did increase memory to 3Gb)

docker build -t buildtools2017:latest -m 3GB .
Sending build context to Docker daemon  4.608kB
Step 1/5 : FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
 ---> 464798764fda
Step 2/5 : SHELL ["cmd", "/S", "/C"]
 ---> Running in 7cd3efb89203
Removing intermediate container 7cd3efb89203
 ---> f4dae2955d27
Step 3/5 : ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\Temp\vs_buildtools.exe
Downloading [==================================================>]  1.384MB/1.384MB
 ---> e25a6e37fff7
Step 4/5 : ADD https://aka.ms/vs/16/release/channel C:\Temp\VisualStudio.chman
Downloading [==================================================>]  132.2kB/132.2kB
 ---> 428e4a012b1f
Step 5/5 : RUN C:\Temp\vs_buildtools.exe     --quiet --wait --norestart --nocache     --installPath C:\BuildTools     --channelUri C:\Temp\VisualStudio.chman     --installChannelUri C:\Temp\VisualStudio.chman     --add Microsoft.VisualStudio.Workload.VCTools;includeRecommended     --add Microsoft.Component.MSBuild  || IF "%ERRORLEVEL%"=="3010" EXIT 0
 ---> Running in c663386ead86
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1028\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\2052\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1029\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1031\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1055\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1046\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1042\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1036\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\3082\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1040\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1045\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1041\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1049\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\HelpFile\1033\help.html...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\vs_setup_bootstrapper.exe...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\Microsoft.Diagnostics.Tracing.EventSource.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\Microsoft.VisualStudio.RemoteControl.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Common.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\Microsoft.VisualStudio.Setup.Download.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\Microsoft.VisualStudio.Telemetry.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\Microsoft.VisualStudio.Utilities.Internal.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\Newtonsoft.Json.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\zh-Hans\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\zh-Hant\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\tr\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\de\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\ru\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\es\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\it\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\fr\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\ko\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\ja\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\cs\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\pl\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\pt-BR\vs_setup_bootstrapper.resources.dll...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\vs_setup_bootstrapper.config...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\vs_setup_bootstrapper.exe.config...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\detection.json...
Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\1d4e75e6135d8e9088fd0f08467d\vs_bootstrapper_d15\vs_setup_bootstrapper.json...
Removing intermediate container c663386ead86
 ---> f7236b96d348
Successfully built f7236b96d348
Successfully tagged buildtools2017:latest

No obvious sign of failure ... but no install details either.

So I run the image:

docker run -it buildtools2017
Microsoft Windows [Version 10.0.17763.737]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\>dir
 Volume in drive C has no label.
 Volume Serial Number is 2804-324F

 Directory of C:\

10/02/2019  07:56 AM             5,510 License.txt
09/10/2019  05:43 PM    <DIR>          Program Files
09/10/2019  05:54 PM    <DIR>          Program Files (x86)
10/02/2019  07:48 AM    <DIR>          Temp
09/09/2019  04:05 PM    <DIR>          Users
09/10/2019  05:22 PM    <DIR>          Windows
               1 File(s)          5,510 bytes
               5 Dir(s)  21,221,007,360 bytes free

Notice there is no c:\BuildTools so nothing in the Docker file works after this.

Wondering what the docker build print out should look like.

Thanks and Regards
Carl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant