Skip to content

BPing/docker-sqlrelay

Repository files navigation

docker-sqlrelay

run sql-relay as docker container

sql-relay

sql-relay configure

configure example for mysql

Usage

To run the container, do the following(for example):

start

docker run -p xx:xx -v /xx:/xx -t -i -d cbping/sqlrelay /bin/bash

then

[root@bf3648a633d1 /]# sqlr-start -config /xx/sqlrelay.conf -id xx

click crtl+p+q ,let container running in background

or

   docker run -p xx:xx -v /xx:/xx -t -i -d cbping/sqlrelay start -config /xx/sqlrelay.conf -id xx

Building

To build the image, simply invoke

docker build github.com/Bping/docker-sqlrelay

A prebuilt container is also available in the docker index

docker pull cbping/sqlrelay