Skip to content

CBG-5062 Sync Gateway: switch to use in memory based backing store - #248

Open
torcolvin wants to merge 1 commit into
couchbase:masterfrom
torcolvin:CBG-5062
Open

CBG-5062 Sync Gateway: switch to use in memory based backing store#248
torcolvin wants to merge 1 commit into
couchbase:masterfrom
torcolvin:CBG-5062

Conversation

@torcolvin

Copy link
Copy Markdown
Contributor

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 generate only creates new files for versions that don't exist anyway.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants