Skip to content

A docker image to migrate data from mongodb to elasticsearch using Compose / Transporter

License

Notifications You must be signed in to change notification settings

feats/compose-transporter-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compose Transporter docker image


About

This is a docker image, which includes a Compose / Transporter application with a predefined, parametric pipeline definition.

The predefined pipeline migrates the current state of a MongoDB database into Elasticsearch, and then continues with syncing the changes too.

+---------+     +-------------+     +---------------+
| mongodb |---->| transporter |---->| elasticsearch |
+---------+     +-------------+     +---------------+

See also the mongo-bi project as an example, how to use this image.

Build

The configuration parameters for build:

  • TRANSPORTER_VERSION: The version of the transporter to use. Default is 0.5.2.
  • TRANSPORTER_PLATFORM: The platform the transporter was built. Default is linux-amd64.

See also the transporter releases for further details on versions and platforms.

Build the image with the default configuration:

docker build -t quadric/compose-transporter-docker:0.5.2 .

Build the image with different versions and/or platforms:

export TRANSPORTER_VERSION=<version>
export TRANSPORTER_VERSION=<platform>
docker build -t quadric/compose-transporter-docker:${TRANSPORTER_VERSION} .

Run

The configuration parameters for run:

  • DB_NAME: The name of the database to transport from MongoDb to ES. It is also the name of the index will be created on ES. Default: test.
  • MONGODB_URI: The full URI of the MongoDb server, including credentials, if there is any. Use one of the following formats: mongodb://<user>:password@host:port or mongodb://host:port. Default: mongodb://localhost:27017.
  • ELASTICSEARCH_URI: The full URI of the Elasticsearch server, including credentials if there is any. Use one of the following formats: http://<user>:password@host:port or http://host:port. Default: http://localhost:9200.
docker run -it --rm tombenke/mongo-to-es-transporter:latest

References

About

A docker image to migrate data from mongodb to elasticsearch using Compose / Transporter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 78.6%
  • JavaScript 21.4%