Skip to content

tinkering with the tikv docker stack + the rust client

Notifications You must be signed in to change notification settings

Terkwood/hello-tikv-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello tikv + rust

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.

start tikv using docker stack

docker swarm init
docker stack deploy --compose-file stack.yml tikv

build the client app

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 .

run the client app

docker run -ti --rm --network tikv hello-tikv-rust

when you're done

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

About

tinkering with the tikv docker stack + the rust client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published