Sign inSign up

osalvador/replicadb

By osalvador

•Updated 27 days ago

Open source tool for database replication, transferring bulk data between SQL and NoSQL databases.

Image
2

1M+

osalvador/replicadb repository overview

⁠ReplicaDB

License Last Version Docker Pull Github Downloads Github Start

replicadb-logo

ReplicaDB is an open source tool for database replication designed for efficiently transferring bulk data between relational and NoSQL databases.

⁠About this Image

Official container images for ReplicaDB on Linux for Docker Engine.

⁠How to use this Image

Run ReplicaDB using docker volume to mount the options file (-v /tmp/replicadb.conf must be an absolute path to options file):

$ docker run \
    -v /tmp/replicadb.conf:/home/replicadb/conf/replicadb.conf \
    osalvador/replicadb

Run ReplicaDB using environment variable to pass the options file to the container:

$ read -r -d '' REPLICADB_CONFIGURATION << EOM
source.connect=jdbc:postgresql://localhost/osalvador
source.table=TEST
sink.connect=jdbc:postgresql://remotehost/osalvador
sink.table=TEST
mode=complete
EOM

$ docker run \
    -e "REPLICADB_CONFIGURATION=${REPLICADB_CONFIGURATION}" \
    osalvador/replicadb

Run ReplicaDB and remove (--rm) the container when it exits. Overwriting ReplicaDB arguments:

$ docker run --rm \
    -e "REPLICADB_CONFIGURATION=${REPLICADB_CONFIGURATION}" \
    osalvador/replicadb --verbose

2020-08-05 15:37:13,055 INFO  ReplicaDB:42 Running ReplicaDB version: 0.8.1
2020-08-05 15:37:13,072 INFO  ReplicaDB:46 Setting verbose mode
...
⁠Environment Variables

The ReplicaDB docker image supports an environment variable to handle configuration :

  • REPLICADB_CONFIGURATION - a string that contains the full configuration file that will be written on /home/replicadb/conf/replicadb.conf on container.
⁠Volumes
  • /home/replicadb/conf/replicadb.conf - File location for configuration file (--options-file parameter)

⁠Find Us

Tag summary

Content type

Image

Digest

sha256:995488254…

Size

412.9 MB

Last updated

27 days ago

docker pull osalvador/replicadb