# local bash
$ docker run -ti -p 8000:15000 -p 8080:15001 vitess/base bash
# in the docker bash
$ export VTROOT=/vt
$ export VTDATAROOT=$HOME/vtdataroot
$ cd $VTROOT/src/github.com/youtube/vitess/examples/local
$ ./zk-up.sh
$ ./vtctld-up.sh
# access to 'http://$(docker-machine ip default):8000' in vitess webui console
$ ./vttablet-up.sh
$ $VTROOT/bin/vtctlclient -server localhost:15999 RebuildKeyspaceGraph test_keyspace
$ $VTROOT/bin/vtctlclient -server localhost:15999 InitShardMaster -force test_keyspace/0 test-0000000100
$ $VTROOT/bin/vtctlclient -server localhost:15999 ListAllTablets test
$ $VTROOT/bin/vtctlclient -server localhost:15999 ApplySchema -sql "$(cat create_test_table.sql)" test_keyspace
$ $VTROOT/bin/vtctlclient -server localhost:15999 Backup test-0000000101
$ $VTROOT/bin/vtctlclient -server localhost:15999 ListBackups test_keyspace/0
$ ./vtgate-up.sh
# access to 'http://$(docker-machine ip default):8080' in vitess gate(monitoring?)
Last active
May 17, 2018 18:02
-
-
Save 178inaba/b659c571f3be19cb4306 to your computer and use it in GitHub Desktop.
try vitess!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment