Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Docker build support now supports placing the files in WSL filesystem
  • From: Moritz Strübe <moritz.struebe@xxxxxxxxxx>
  • Date: Sat, 21 May 2022 11:23:06 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mathema.de; dmarc=pass action=none header.from=mathema.de; dkim=pass header.d=mathema.de; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AaRsDK+aSI33KRdTMVcvJomDeBWPeb3u/6mjk+IuTMk=; b=dpFxBbRBQvc+DX+APyznPJbUj1fSevriZ8SneXIHj2PzIGldphICpnbHidN7Au3OROfBnQq0tu7gFpc3LxJ6VAhLxmgru+8edNst/Iczf7ET1MkN8SkTjQ9TYMtEaMKWTKXKCXxl41EexhN2EL2Z4Hl1QGKaLNhus6F/FKrL0wraHuEOJftQgiuCRsuHDvoceDScW0oWI3pB9gA7TRuA11ISRXVHnJ+eQZzynsb4BkB1MsTHwMd84Omo4gjBn2nkYYUVsA7OEYKBazAB8Zvyl8GDg7FMtPUiGHar8MumIw7NV+NAzVS6w64oi0L8KIm2ZSal7bpkba+sJ/cgeO3DSw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a+TCi6Kn7WvF3WcmfYyXA9HTlDGqRmcO1thKnEDC6pd/4TV7+t9dzQQxsXBX+CwfCQA07ZNl0opOWABlFW6c95shEsLDt0EOCB4n0BS5Y4lFMglISV1TI5N3PImAXbd2uvzNKsU0Onqr5DUA61eb6s4GTkCt4FtnvCgUxJi25TZbu6nE95gdz464EILANtxyPdQNXbLp6vHIun+8k0V/CYv1p+yh/Xr96uvw7kmnnMZMuoufg09dOWXAwDhiA3cYilhgUYUILal6RbVmfWaIRURZZtI/rpIivWI3eNmmtQHwk0Yp1LcT2T5UPRoKoLzf4jjBk0ZMPT1dwhu28gkyDQ==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev/>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0

Hey,

those of you working with Docker & WSL will know, that building a project using the WSL's filesystem is much, much faster than using the Windows filesystem. With https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/193489 is should now possible to save your project in \\WSL$\Ubuntu\home\[...] and use a docker-image to build your code there. - It might be a good Idea to place your Workspace on the Windows filesystem, though.

I'm using the word "should", because since I wrote the original patch, I migrated to Linux. I did some testing in a VM, but not very extensive. Thus if anyone is using CDT's docker build support on Windows, I'd love to get some feedback.

This patch should also improve pulling includes from an image into the host's file system and thus making the indexer very happy. I personally build almost all of my projects using Cmake and getting all necessary include paths and macro definitions using the Built-In-Compiler-Settings and Compilation-Database-Parser providers. This allows me keep the maintenance low, while happily configuring everything using CMake or switching to the docker-image with the necessary cross-compiler.  If there is interest, I'd be willing to write a few words on how to set those up.

Cheers
Morty

--
MATHEMA GmbH
Schillerstraße 14 | 90409 Nürnberg

Telefon: +49 (0)911 180778-50
E-Mail: moritz.struebe@xxxxxxxxxx | Web: www.mathema.de

Geschäftsführer: Andreas Hanke, Thomas Haug
Handelsregister: HR B 35517, Nürnberg/Bayern



Back to the top