Page MenuHomePhabricator
Feed Advanced Search

Mar 10 2022

jim closed D3236: tunnelbroker: Generate gRPC/protobuf code with CMake.
Mar 10 2022, 8:32 AM
jim committed rCOMM9ee741642cd8: tunnelbroker: Generate gRPC/protobuf code with CMake (authored by jim).
tunnelbroker: Generate gRPC/protobuf code with CMake
Mar 10 2022, 8:32 AM
jim closed D3234: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images.
Mar 10 2022, 8:18 AM
jim committed rCOMM370381a0bf4c: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images (authored by jim).
tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images
Mar 10 2022, 8:18 AM

Mar 8 2022

jim accepted D3173: [services] Backup - add relevant opaque apis for server.

Nice!

Mar 8 2022, 8:49 AM

Mar 4 2022

jim requested review of D3237: tunnelbroker: Use pkg-config to find dependencies.
In D3237#87734, @ashoat wrote:

Sounds like we need to add something like brew install pkgconfig to our dev environment setup instructions

Mar 4 2022, 12:52 PM
jim added a comment to D3234: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images.

Rebased and addressed comments

Mar 4 2022, 12:43 PM
jim updated the diff for D3234: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images.
  • Address review comments
Mar 4 2022, 12:41 PM
jim accepted D3198: [services] Move folly from Blob to Backup base.
In D3198#89776, @ashoat wrote:

Requesting changes for @jimpo's last comment above. Remember – if you don't request changes / accept when you leave a comment, then the diff stays on your queue instead of going back to the diff author's!

Mar 4 2022, 12:14 PM
jim accepted D3268: [services] Move as much content as possible to the parent base image.
Mar 4 2022, 12:09 PM

Mar 3 2022

jim added inline comments to D3198: [services] Move folly from Blob to Backup base.
Mar 3 2022, 8:32 AM
jim added a comment to D3198: [services] Move folly from Blob to Backup base.
In D3198#86520, @karol-bisztyga wrote:

Can you specify what do you mean exactly? I think folly is installed as a system lib and symlinked to the local dir.

Mar 3 2022, 7:59 AM
jim added a comment to D3268: [services] Move as much content as possible to the parent base image.
In D3268#89591, @karol-bisztyga wrote:

Is there a task for this?

Mar 3 2022, 7:51 AM
jim added inline comments to D3240: [docs] Services documentation.
Mar 3 2022, 7:41 AM

Mar 2 2022

jim added inline comments to D3240: [docs] Services documentation.
Mar 2 2022, 1:11 PM
jim requested review of D3234: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images.
Mar 2 2022, 9:05 AM
jim added a comment to D3274: Add intial nix yarn dev env.

Cool! I'm a nix n00b, so forgive any dumb comments. :-)

Mar 2 2022, 8:34 AM
jim added a comment to D3268: [services] Move as much content as possible to the parent base image.

Good idea. There are a couple other improvements possible now, in particular building gRPC with the -DgRPC_SSL_PROVIDER=package and -DgRPC_ZLIB_PROVIDER=package flags to avoid building BoringSSL and rebuilding zlib and instead use the system libs installed in the base image.

Mar 2 2022, 6:23 AM

Feb 28 2022

jim added a comment to D3236: tunnelbroker: Generate gRPC/protobuf code with CMake.

@ashoat Agreed that the whitespace around private: is weird because gRPC v1.39.1 (what is installed) is pinned to protobuf 3.15.8. In another local branch I tried installing protoc 3.15.8 explicitly in the Docker image per the directions (not with CMake) and the same thing happens.

Feb 28 2022, 8:45 PM
jim added a comment to D3236: tunnelbroker: Generate gRPC/protobuf code with CMake.

@karol-bisztyga I'll rebase after D3234 lands or is rejected so you can patch and test yourself

Feb 28 2022, 11:35 AM
jim accepted D3238: [services/native] gRPC generated files from tunnelbroker.proto.
Feb 28 2022, 11:33 AM
jim added a comment to D3236: tunnelbroker: Generate gRPC/protobuf code with CMake.

The full diff from the new generated files in D3238 is

Feb 28 2022, 11:32 AM
jim accepted D3295: [docker] Run `rm -rf /var/lib/apt/lists/*` after `apt-get install`.
Feb 28 2022, 9:48 AM
jim added a comment to D3200: [services] Backup - dev mode.
In D3200#86984, @karol-bisztyga wrote:

This is the old approach, the new one uses some kind of local instance of the cloud. I'm not sure but I might've put this up before we talked about this in the channel. I think we can land this and refactor the dev mode separately https://linear.app/comm/issue/ENG-795/use-local-cloud-instance-for-dev-mode-in-services

Feb 28 2022, 8:26 AM
jim requested changes to D3295: [docker] Run `rm -rf /var/lib/apt/lists/*` after `apt-get install`.
Feb 28 2022, 6:55 AM

Feb 27 2022

jim added a comment to D3234: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images.

@karol-bisztyga Rebased, you should be able to patch now

Feb 27 2022, 3:05 PM
jim added a comment to D3212: [docker] Switch base image from `alpine:3.14` to `ubuntu:20.04`.

@atul This should run rm -rf /var/lib/apt/lists/* after the apt-get install. See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get. "In addition, when you clean up the apt cache by removing /var/lib/apt/lists it reduces the image size, since the apt cache is not stored in a layer."

Feb 27 2022, 8:56 AM
jim updated the diff for D3234: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images.
  • Fix blob service base to not depend on tunnelbroker
Feb 27 2022, 8:52 AM

Feb 25 2022

jim closed D3233: services: Use .env file for docker-compose.
Feb 25 2022, 2:38 PM
jim committed rCOMM90ddba6307b1: services: Use .env file for docker-compose (authored by jim).
services: Use .env file for docker-compose
Feb 25 2022, 2:38 PM

Feb 24 2022

jim added inline comments to D3236: tunnelbroker: Generate gRPC/protobuf code with CMake.
Feb 24 2022, 6:43 AM

Feb 23 2022

jim requested review of D3236: tunnelbroker: Generate gRPC/protobuf code with CMake.

@karol-bisztyga No, the generated files are not the same as in https://github.com/CommE2E/comm/tree/master/native/cpp/CommonCpp/grpc/_generated. However, I checked that they are the same as the generated files in the tunnelbroker server Docker container on master currently, which consequently does not match the client files.

Feb 23 2022, 7:13 PM
jim added a comment to D3237: tunnelbroker: Use pkg-config to find dependencies.

What environments are supported? pkg-config is pretty common in Linux and can be installed with homebrew on OSX I believe.

Feb 23 2022, 6:50 PM
jim requested review of D3233: services: Use .env file for docker-compose.

Yes, waiting for response from @karol-bisztyga

Feb 23 2022, 3:46 PM

Feb 18 2022

jim added a comment to D3234: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images.

Given that this is just a change to the environment, I think testing that the image builds and the container can be launched with the service running is a good enough test. Though this diff in the stack in particular is more of a proposal and maybe should be delayed until a similar change is ready for the other services so that they all have the same code structure.

Feb 18 2022, 9:36 AM
jim added a comment to D3233: services: Use .env file for docker-compose.

Yes, it doesn't actually source into environment variables but parses it as a file. So if you actually set the environment variables, they will override whatever is in the file. And for different configurations you can pass the --env-file flag explicitly. See https://docs.docker.com/compose/env-file/.

Feb 18 2022, 9:30 AM

Feb 16 2022

jim requested changes to D3173: [services] Backup - add relevant opaque apis for server.
Feb 16 2022, 2:23 PM
jim requested review of D3237: tunnelbroker: Use pkg-config to find dependencies.
Feb 16 2022, 12:37 PM
jim requested review of D3236: tunnelbroker: Generate gRPC/protobuf code with CMake.
Feb 16 2022, 12:31 PM
jim requested review of D3234: tunnelbroker: Merge tunnelbroker-base and tunnelbroker-server images.
Feb 16 2022, 12:20 PM
jim requested review of D3233: services: Use .env file for docker-compose.
Feb 16 2022, 12:13 PM
jim added a comment to D3212: [docker] Switch base image from `alpine:3.14` to `ubuntu:20.04`.

Only one comment

Feb 16 2022, 11:02 AM
jim added a comment to D3198: [services] Move folly from Blob to Backup base.

OK, a related issue here is that I'd prefer folly to be built and installed as a system library instead of pulled into the CMake build of the service. This both helps for Docker layer caching and simplifying the CMakeLists.txt. I don't care as much whether it's in the service image or the base image, but one argument for service image is that we may want to build folly with different features/flags/build parameters for different services.

Feb 16 2022, 5:48 AM

Feb 9 2022

jim added inline comments to D3119: [services] Tunnelbroker - Get AWS region from aws/config only..
Feb 9 2022, 2:26 PM
jim accepted D3156: add new opaque API to get server keypair.
Feb 9 2022, 2:14 PM
jim accepted D3119: [services] Tunnelbroker - Get AWS region from aws/config only..
Feb 9 2022, 8:23 AM

Feb 8 2022

jim accepted D3114: [services] Tunnelbroker - Database entities for messages..

LGTM

Feb 8 2022, 6:30 PM
jim accepted D3103: [services] Tunnelbroker - Handle SessionID collision without erroring, using random device to generate it..
Feb 8 2022, 6:24 PM
jim accepted D3116: [services] Tunnelbroker - Add messages table name to ConfigManager..
Feb 8 2022, 6:08 PM
jim added inline comments to D3103: [services] Tunnelbroker - Handle SessionID collision without erroring, using random device to generate it..
Feb 8 2022, 5:23 PM
jim added a comment to D3119: [services] Tunnelbroker - Get AWS region from aws/config only..

I don't love the idea of having a third config file (.aws/credentials & tunnelbroker.ini already). Why is .aws/credentials not good enough? What does the CLI have to do with the application config?

Feb 8 2022, 5:19 PM
jim added a comment to D3103: [services] Tunnelbroker - Handle SessionID collision without erroring, using random device to generate it..

For session keys and things like that, std::random_device is fine. If perf is an issue we could make a using Crypto++ primitives.

Feb 8 2022, 9:23 AM

Feb 7 2022

jim added a comment to D3103: [services] Tunnelbroker - Handle SessionID collision without erroring, using random device to generate it..

I don't understand the problem here.

Feb 7 2022, 8:04 PM