This is an example of using the rust tikv client to
talk to tikv. It uses docker stack
to bring up tikv.
Everything in this repository is based on this official document. But we had to make changes to get the client app Dockerfile
working.
docker swarm init
docker stack deploy --compose-file stack.yml tikv
You need to build the app in docker so that it can be run as part of the docker stack environment.
docker build -t hello-tikv-rust .
docker run -ti --rm --network tikv hello-tikv-rust
If you normally run docker-compose
as a single node, and you
don't want anything to do with docker swarm
, you can leave
the swarm. Be careful, this is destructive.
docker swarm leave --force