Unable to install QT 5.10.1 non-interactively in docker container
Unsolved
Installation and Deployment
-
Hi, I am trying to install QT 5.10.1 using docker. Below is my controller script and downloaded qt-opensource-windows-x86-5.10.1.exe . When I build the docker image, I get warning and it will not proceed further and gets stuck. The docker execution is mentioned below.
function Controller() { installer.autoRejectMessageBoxes(); installer.installationFinished.connect(function() { gui.clickButton(buttons.NextButton); }) } Controller.prototype.WelcomePageCallback = function() { gui.clickButton(buttons.NextButton, 3000); } Controller.prototype.CredentialsPageCallback = function() { gui.clickButton(buttons.NextButton); } Controller.prototype.IntroductionPageCallback = function() { gui.clickButton(buttons.NextButton); } Controller.prototype.TargetDirectoryPageCallback = function() { gui.currentPageWidget().TargetDirectoryLineEdit.setText("C:\\Qt"); gui.clickButton(buttons.NextButton); } Controller.prototype.ComponentSelectionPageCallback = function() { var widget = gui.currentPageWidget(); widget.deselectAll(); widget.selectComponent("qt.tools.qtcreator"); widget.deselectComponent("qt.tools.vcredist_msvc2015_x64"); widget.deselectComponent("qt.qt5.5101.win64_msvc2015_64"); widget.deselectComponent("qt.tools.vcredist_msvc2015_x86"); widget.deselectComponent("qt.qt5.5101.doc"); widget.deselectComponent("qt.qt5.5101.examples"); gui.clickButton(buttons.NextButton); } Controller.prototype.LicenseAgreementPageCallback = function() { gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true); gui.clickButton(buttons.NextButton); } Controller.prototype.StartMenuDirectoryPageCallback = function() { gui.clickButton(buttons.NextButton); } Controller.prototype.ReadyForInstallationPageCallback = function() { gui.clickButton(buttons.NextButton); } Controller.prototype.FinishedPageCallback = function() { var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) { checkBoxForm.launchQtCreatorCheckBox.checked = false; } gui.clickButton(buttons.FinishButton); }
Sending build context to Docker daemon 2.522GB Step 1/6 : FROM mstool:latest ---> 1d1ad9bdf4f0 Step 2/6 : COPY ./install C:/tmp/qt ---> Using cache ---> 51c5e6cb6a87 Step 3/6 : RUN C:\tmp\qt\qt-opensource-windows-x86-5.10.1.exe --script C:\tmp\qt\qt-installer-noninteractive.qs ---> Running in bf5f50b917a1 [964] Warning: QWinTaskbarButton: qIID_ITaskbarList4 was not created: 0x80040154, REGDB_E_CLASSNOTREG. [968] Warning: QWinTaskbarButton: qIID_ITaskbarList4 was not created: 0x80040154, REGDB_E_CLASSNOTREG. [337689] Warning: Network error: [ QNetworkReply::NetworkError(UnknownNetworkError) ] "Failed to connect to server. Check your network connection and try again."