GithubHelp home page GithubHelp logo

terkwood / hello-tikv-rust Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 19 KB

tinkering with the tikv docker stack + the rust client

Dockerfile 39.72% Shell 40.02% Rust 20.26%
hello-world tikv docker-stack rust

hello-tikv-rust's Introduction

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

hello-tikv-rust's People

Contributors

terkwood avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.