-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using autopush with local database (like sqlite) #774
Comments
Well, not officially (for lots and lots of tech reasons mostly around performance, cost, and scale), but it is technically possible. When we were looking to move to bigtable, I built a crappy version that wrote to Postgres mostly as a PoC to make sure that I abstracted things correctly. In essence, if you were to create a new struct that implemented DbClient, that should allow Autopush to work with whatever data store you wanted. (I'm not going to post up the Postgres stuff because it's horrible, old, and hasn't merged to main in over a year.) That said, i'm a bit curious about the "cbt requires a Google account". IIRC, you can install the gcloud CLI, and then once it's installed, run the bigtable emulator by calling Heck, you should even be able to grab the google/cloud-sdk docker image and run that locally. (We do that for our CI testing.) If you don't mind the data being a bit ephemeral (the emulator only keeps in-memory storage), it's a far easier way to get rolling. |
Hi @jrconlin, Thank you very much for your reply. In fact the error occurs when I run the setup_bt.sh script:
Google account is mandatory to use cbt i guess? By using one, ./setup_bt.sh:
I'm a bit lost in the documentation. After this step, which ones allows to launch autoconnect and autoendpoint? If I basically run ./autoconnect (on /autopush-rs/target/debug/) :
If you can guide me to get autopush up and running, thank you in advance. |
I think the first error The second one tells me that you already have the bigtable emulator running in the background. (The script is not smart and just tries to start and emulator, and then run a bunch of setup. It never checks to see if the emulator is already running or if those steps have already been run. The final error is the most concerning. You shouldn't be seeing If you're running the latest master or tag, however, it should already be using Bigtable (although you may still wish to include the As for the setting strings, there are two configuration strings that are database specific:
|
Hi @jrconlin, Thanks for all the information and details to help me move forward step by step :) Here's what I did on an new Ubuntu install. Installation packages:
Google Cloud CLI + bigtable + cbt:
Rust:
autopush-rs
I modified setup_bt.sh with test123 as projects and test123 as instances (i used test123 on db_settings en variable). Just for info, cbt is not happy with just test as project name because it want at least 6 chars (don't know if it's new).
I checked if it's ok on bigtable instance:
i've this error again:
and at the end:
The installed version is the last one: 1.71.7. I must have done something wrong in my approach :) |
Hi the Team,
I would like to be able to install autopush locally without requiring an internet connection. According to the documentation, it seems that Bigtable is needed, and the setup_bt.sh script uses cbt, which will require a Google account.
Is this possible in the current state? for example, using a local sqlite database.
Thank you in advance for your help.
Nick
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: