CLI of qt-online-installer fails in docker
-
I am trying to install QT inside a docker container (via gitlab-ci) with the following command:
./qt-unified-linux-x64-4.7.0-online.run --root /opt/Qt --accept-obligations --accept-licenses --default-answer --confirm-command install qt.qt6.653.gcc_64 qt.qt6.653.addons
Unfortunately that fails. The docker log spits out the following:
[7362] Installation space required: "4.29 GB" Temporary space required: "1.45 GB" Local repository size: "0.00 bytes" [7363] Cache is on a different volume than the installation directory. Cache volume mount point: "" Free space available: "0.00 bytes" Install volume mount point: "/builds" Free space available: "202.72 GB" [7363] Not enough disk space to store temporary files! 0.00 bytes are available, while the minimum required is 1.45 GB. You may select another location for the temporary files by modifying the local cache path from the installer settings. [7363] Installation aborted.
Any ideas how to solve this? Is there a way to specify that mysterious cache? adding
--cache-path <some tmp dir>
option didn't help -
Hi and welcome to devnet,
Since you are in a CI context, did you consider using the aqt install project ? It's not the official installer but its goal is to make installing Qt easier in the context of a CI.
-
Hi @SGaist ,
Thanks for the welcome and your hint to aqt. I will definitely look into that one, but I would prefer to use the official installer for our production environment that is proved to work there. Do you know how the 'Cache volume mount point' that is
""
could be specified or how it is actually checked? I think this is the only thing lacking for a successful installation which is working fine if not in a container. -
@krafel said in CLI of qt-online-installer fails in docker:
Thanks for the welcome and your hint to aqt. I will definitely look into that one
+1 for aqt. I also highly recommend this handy tool for building aqt command lines: https://ddalcino.github.io/aqt-list-server/
@krafel said in CLI of qt-online-installer fails in docker:
Do you know how the 'Cache volume mount point' that is
""
could be specified or how it is actually checked?A quick look at the Qt Installer Framework source suggests that
--cache-path
should work (untested).Cheers.