#community-help

0.25-Join Production Readiness and Building with Bazel

TLDR 谢渊 inquired about 0.25-join's readiness and building with Bazel. Kishore Nallan confirmed its production readiness and provided build guidance. 谢渊 successfully built Typesense server following instructions.

Powered by Struct AI
yw

1

27
3mo
Solved
Join the chat
Jun 12, 2023 (3 months ago)
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
09:33 AM
is 0.25-join ready for production uses?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:34 AM
Yes, it's in the final stretches of testing before release. We already have several customers using it on production.
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
09:37 AM
it's glad to hear that. In fact, I believe that bazel will do a good job, but the only doubt is could I run into the same dependency problems like that?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:38 AM
Bazel builds everything in a sandbox so you should not face any issues. I've built it several times on vanilla VMs so it should build fine.
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
09:40 AM
great👍, thanks a lot
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:40 AM
Btw, the Typesense Docker images themselves use ubuntu:22.04 as base image.
09:40
Kishore Nallan
09:40 AM
The development.Dockerfile uses an old image because we wanted an older glibc version so we can target older distros. That's used only for building the binary.
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
09:42 AM
fantastic👍
09:50
谢渊
09:50 AM
hi Kishore, I also would like to know your workflow, like what kind of dev containers you use to view and edit code, and the ones you use to build the production-ready binaries
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:51 AM
I don't use containers. That's one of the main reasons to switch to Bazel. The build is well sandboxed and just works so I just use native binary + development flow.
09:51
Kishore Nallan
09:51 AM
Clion / VS Code should support Bazel projects out of the box with appropriate plugins.
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
09:52 AM
thanks🙂
yw

1

Pankaj
Photo of md5-6eb5a1ce5c2a902eaa7ed5dae82ed54b
Pankaj
11:21 AM
Is there a documentation for joins some where ?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:26 AM
That branch began for join related work but we since decided to defer parts of it to 0.26 release so it's not fully functional.
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
11:36 AM
hi, Kishore,I'm now on a centos7-based linux VM, using bazel 4.2.1 to build branch v0.25-join with command bazel build ://typesense-serverlike what you told me before,and still ran into problems. Could you plz help me here
Image 1 for hi, Kishore,I'm now on a centos7-based linux VM, using bazel 4.2.1 to build branch v0.25-join with command `bazel build ://typesense-server`like what you told me before,and still ran into problems. Could you plz help me here
11:39
谢渊
11:39 AM
Seems related to my local env, like gcc, make libs, etc. Maybe I should run bazel in a standard env like a docker ?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:41 AM
What version of gcc do you have on that machine?
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
11:42 AM
8.2.0
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:43 AM
I think that might be too old a version. Try with GCC 10.x or 11.x
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
11:43 AM
should I use 1 or 2 for building typsense?
Image 1 for should I use 1 or 2 for building typsense?
11:44
谢渊
11:44 AM
these 2 files are newly from v0.25-join compared to v0.24.1
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:45 AM
Can you explain to me the rationale for building the Typesense Docker image again?
11:46
Kishore Nallan
11:46 AM
baze_dev.Dockerfile just creates an image from Ubuntu 14.10 that contains GCC and Bazel. So that once it's created, you can build Typesense from within that container.
11:47
Kishore Nallan
11:47 AM
If you installed GCC 10 locally and tried the native Bazel build, it should work.
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
11:47 AM
cool, that's what I need
Jun 13, 2023 (3 months ago)
谢渊
Photo of md5-7a5b648ca51447c30b96671596d58a2b
谢渊
05:00 AM
Kishore Nallan following your instruction, I finally suceed to build typesense-server with bazel, thanks a lot. Worth to point out, the original baze_dev.Dockerfile was still not available for bazel building. Then I switch ubuntu image tag to 18.04, and it worked
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
05:01 AM
Good to hear and thanks for the heads up.