CBG-5062 Sync Gateway: switch to use in memory based backing store - #248
Open
torcolvin wants to merge 1 commit into
Open
CBG-5062 Sync Gateway: switch to use in memory based backing store#248torcolvin wants to merge 1 commit into
torcolvin wants to merge 1 commit into
Conversation
Use a config file for Sync Gateway that allows the base docker image to start up. The default sync_gateway config file used by deb packages is examples/serviceconfig.json which loads an in memory (rosmar) copy of Sync Gateway. The existing configuration file used is from examples/startup_config/basic.json which shows an example of how to connect to couchbase server but can't be used without a couchbase server instance. In a docker container couchbases://localhost is never going to be a path to a Couchbase Server instance.
mhocouchbase
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CBG-5062 sgw: switch to use in memory based backing store
Use a config file for Sync Gateway that allows the base docker image to start up.
The default sync_gateway config file used by deb packages is examples/serviceconfig.json which loads an in memory (rosmar) copy of Sync Gateway.
The existing configuration file used is from examples/startup_config/basic.json which shows an example of how to connect to couchbase server but can't be used without a couchbase server instance. In a docker container couchbases://localhost is never going to be a path to a Couchbase Server instance.
Note:
I'm not at all attached to the mechanics of this implemenation. This file is only valid for Sync Gateway 3.2+ so I put an if statement to use the original file. I'm fine with not regenerating the older images - it seems
go generateonly creates new files for versions that don't exist anyway.