I tried to compile and install mariadb in alpine, because it was used in docker, so I wanted to take up less space after the compilation was successful.
I used the -dcmake_build_type =MinSizeRel option to minimize the installation. But the mysql-test directory still takes up a lot of space.
I tried using -dwith_unit_tests =OFF and -dconc_with_unit_tests =OFF to disable mysql-test installation, but they didn't work. I haven't found any other relevant options, similar to INSTALL_MYSQLTESTDIR="" in mysql.
How can I disable mysql-test installation?
mysql installation options is this:
cmake . \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DWITH_UNIT_TESTS=OFF \
-DCONC_WITH_UNIT_TESTS=OFF \
-DWITH_MARIABACKUP=OFF \
-DENABLED_LOCAL_INFILE=ON \
-DWITHOUT_TOKUDB=1; \
Right, sorry for the confusion. In my comment I meant that we apparently don't have a way to avoid installing mysql-test, not that we don't have the option. I didn't know that it could work this way, happy to be wrong.
Elena Stepanova
added a comment - Right, sorry for the confusion. In my comment I meant that we apparently don't have a way to avoid installing mysql-test, not that we don't have the option. I didn't know that it could work this way, happy to be wrong.
yinfuyuan
added a comment - @Vladislav Vaintroub
I've tried -DINSTALL_MYSQLTESTDIR="" and -DMYSQLTESTDIR= , but they don't work. The following can see my compilation details.
https://github.com/yinfuyuan/docker-mariadb/blob/develop/services/mariadb/10.2/alpine/Dockerfile
Is that have a problem? .Thanks for you help.
and mysql-test is not in the package
your dockerfile das have a problem indeed, because it does not use correct option. How do I know correct option? I grep CMakeCache.txt, and I look into cmake/install_macros.cmake to see the effect of INSTALL_MYSQLTESTDIR.
Apparently, this line https://github.com/MariaDB/server/blob/10.2/cmake/install_macros.cmake#L357 does the magic
Vladislav Vaintroub
added a comment - - edited it works for me, and should for you, too
cmake . -DINSTALL_MYSQLTESTDIR=
and mysql-test is not in the package
your dockerfile das have a problem indeed, because it does not use correct option. How do I know correct option? I grep CMakeCache.txt, and I look into cmake/install_macros.cmake to see the effect of INSTALL_MYSQLTESTDIR.
Apparently, this line https://github.com/MariaDB/server/blob/10.2/cmake/install_macros.cmake#L357 does the magic
Now. I used it correctly, it works well.
Thank you very mach for you help.
yinfuyuan
added a comment - @Vladislav Vaintroub
Yes.
I know cmake ../server -LH can be display all cmake configuration options for MariaDB from
https://mariadb.com/kb/en/library/generic-build-instructions
but the -DINSTALL_MYSQLTESTDIR option is not available,so I didn't try it.
Now. I used it correctly, it works well.
Thank you very mach for you help.
"Non-advanced" is important part. INSTALL_XXX variables are marked as advanced.
but you can cat or vi CMakeCache.txt to see all variables.
Vladislav Vaintroub
added a comment - Our documentation a little simplified
https://cmake.org/cmake/help/v3.10/manual/cmake.1.html contains accurate description of what cmake -L [A] [H] does .
List non-advanced cached variables.
"Non-advanced" is important part. INSTALL_XXX variables are marked as advanced.
but you can cat or vi CMakeCache.txt to see all variables.
People
Vladislav Vaintroub
yinfuyuan
Votes:
0Vote for this issue
Watchers:
5Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":941.5,"ttfb":200.79999995231628,"pageVisibility":"visible","entityId":65301,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"7aa04351-ebf4-4fa0-8b64-74c5ed0e9cef","navigationType":0,"readyForUser":969.1999998092651,"redirectCount":0,"resourceLoadedEnd":549.5999999046326,"resourceLoadedStart":211.89999985694885,"resourceTiming":[{"duration":12.600000143051147,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":211.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":224.5,"responseStart":0,"secureConnectionStart":0},{"duration":12.600000143051147,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":212.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":224.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":167.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":212.5,"connectEnd":212.5,"connectStart":212.5,"domainLookupEnd":212.5,"domainLookupStart":212.5,"fetchStart":212.5,"redirectEnd":0,"redirectStart":0,"requestStart":228.19999980926514,"responseEnd":380.39999985694885,"responseStart":244,"secureConnectionStart":212.5},{"duration":335.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":213.19999980926514,"connectEnd":213.19999980926514,"connectStart":213.19999980926514,"domainLookupEnd":213.19999980926514,"domainLookupStart":213.19999980926514,"fetchStart":213.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":231.39999985694885,"responseEnd":548.8999998569489,"responseStart":252.79999995231628,"secureConnectionStart":213.19999980926514},{"duration":44.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":213.39999985694885,"connectEnd":213.39999985694885,"connectStart":213.39999985694885,"domainLookupEnd":213.39999985694885,"domainLookupStart":213.39999985694885,"fetchStart":213.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":232.39999985694885,"responseEnd":257.89999985694885,"responseStart":256.2999999523163,"secureConnectionStart":213.39999985694885},{"duration":41.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":213.59999990463257,"connectEnd":213.59999990463257,"connectStart":213.59999990463257,"domainLookupEnd":213.59999990463257,"domainLookupStart":213.59999990463257,"fetchStart":213.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":232.59999990463257,"responseEnd":255.19999980926514,"responseStart":252.09999990463257,"secureConnectionStart":213.59999990463257},{"duration":41.299999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":213.79999995231628,"connectEnd":213.79999995231628,"connectStart":213.79999995231628,"domainLookupEnd":213.79999995231628,"domainLookupStart":213.79999995231628,"fetchStart":213.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":233.59999990463257,"responseEnd":255.09999990463257,"responseStart":251.5,"secureConnectionStart":213.79999995231628},{"duration":18.199999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":214,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":232.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":49.799999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":214.09999990463257,"connectEnd":214.09999990463257,"connectStart":214.09999990463257,"domainLookupEnd":214.09999990463257,"domainLookupStart":214.09999990463257,"fetchStart":214.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":235.79999995231628,"responseEnd":263.89999985694885,"responseStart":261.2999999523163,"secureConnectionStart":214.09999990463257},{"duration":20,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":214.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":234.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":49.799999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":214.39999985694885,"connectEnd":214.39999985694885,"connectStart":214.39999985694885,"domainLookupEnd":214.39999985694885,"domainLookupStart":214.39999985694885,"fetchStart":214.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":236.59999990463257,"responseEnd":264.19999980926514,"responseStart":262.09999990463257,"secureConnectionStart":214.39999985694885},{"duration":332.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":216.19999980926514,"connectEnd":216.19999980926514,"connectStart":216.19999980926514,"domainLookupEnd":216.19999980926514,"domainLookupStart":216.19999980926514,"fetchStart":216.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":255.39999985694885,"responseEnd":548.5999999046326,"responseStart":541.6999998092651,"secureConnectionStart":216.19999980926514},{"duration":333.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":216.29999995231628,"connectEnd":216.29999995231628,"connectStart":216.29999995231628,"domainLookupEnd":216.29999995231628,"domainLookupStart":216.29999995231628,"fetchStart":216.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":255.79999995231628,"responseEnd":549.5999999046326,"responseStart":542.6999998092651,"secureConnectionStart":216.29999995231628},{"duration":65.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":530.8999998569489,"connectEnd":530.8999998569489,"connectStart":530.8999998569489,"domainLookupEnd":530.8999998569489,"domainLookupStart":530.8999998569489,"fetchStart":530.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":558.1999998092651,"responseEnd":596.2999999523163,"responseStart":595.3999998569489,"secureConnectionStart":530.8999998569489},{"duration":233.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":777.7999999523163,"connectEnd":777.7999999523163,"connectStart":777.7999999523163,"domainLookupEnd":777.7999999523163,"domainLookupStart":777.7999999523163,"fetchStart":777.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":901.7999999523163,"responseEnd":1011.3999998569489,"responseStart":989.6999998092651,"secureConnectionStart":777.7999999523163},{"duration":156.79999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":872.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":872.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1029.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":33,"responseStart":201,"responseEnd":215,"domLoading":206,"domInteractive":1078,"domContentLoadedEventStart":1078,"domContentLoadedEventEnd":1120,"domComplete":1468,"loadEventStart":1468,"loadEventEnd":1468,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1031.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1032.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1032.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":1034},{"name":"activityTabFullyLoaded","time":1131.6999998092651}],"measures":[],"correlationId":"6f55a15cdcf731","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":9,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Right, sorry for the confusion. In my comment I meant that we apparently don't have a way to avoid installing mysql-test, not that we don't have the option. I didn't know that it could work this way, happy to be wrong.