This reduces size of the Docker base image from 3.03GB to 1.29GB.
Also:
services: Pass gRPC build flags at build time
services: Better Docker layering in base image
services: Remove unused gRPC build variable
Paths
| Differential D3399 Authored by • jim on Mar 10 2022, 11:36 AM.
Details Summary This reduces size of the Docker base image from 3.03GB to 1.29GB. Also: services: Pass gRPC build flags at build time Test Plan Run npm run build-all and run-all
Diff Detail
Event TimelineHerald added subscribers: • benschac, atul, • adrian, tomek. · View Herald TranscriptMar 10 2022, 11:36 AM2022-03-10 11:36:09 (UTC-8) Harbormaster completed remote builds in B7286: Diff 10274.Mar 10 2022, 12:17 PM2022-03-10 12:17:20 (UTC-8) This revision is now accepted and ready to land.Mar 10 2022, 8:05 PM2022-03-10 20:05:25 (UTC-8) Comment Actions What is the reason behind having grpc flags passed to the cmake in the bash script instead of having them directly in the cmake file?
Comment Actions
Because that is when gRPC is built. In the CMake file, it's just using the pre-installed gRPC library. See comments here https://phabricator.ashoat.com/D3198?id=10038#inline-19455 and here https://linear.app/comm/issue/ENG-824#comment-6555f66b.
Comment Actions Ah yes, sorry I get it now, it's alright!
This revision is now accepted and ready to land.Mar 15 2022, 8:16 PM2022-03-15 20:16:29 (UTC-7) Harbormaster completed remote builds in B7460: Diff 10509.Mar 17 2022, 4:24 PM2022-03-17 16:24:18 (UTC-7) Closed by commit rCOMM7f17a64e3155: services: Remove gRPC source after installing (authored by • jim). · Explain WhyMar 18 2022, 5:58 AM2022-03-18 05:58:04 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 10515 services/backup/docker-server/contents/build_server.sh
services/backup/docker-server/contents/server/CMakeLists.txt
services/backup/docker-server/contents/server/cmake-components/grpc.cmake
services/base-image/Dockerfile
|