GithubHelp home page GithubHelp logo

baldr's Introduction

baldr

Baldr is a utility cli for running services inside docker.

Commands

baldr uses commands to perform diferent actions, most of the time their related to waiting for dependencies to be ready before continuing.

MongoDB

the mongodb command will wait for a mongodb instance to ready to accept connections before continuing or it will fails after some time.

	baldr mongodb -m mongodb://user:pass@db1:10013

you can also specify a wait time in ms before retries with -t and the number of times you want it to retry before bailing out.

	 baldr mongodb -m mongodb://user:pass@db1:10013 -t 5000 -r 10

etcd3

the etcd3 command will wait for a etcdv3 cluster instance to ready to accept connections before continuing or it will fails after some time.

	baldr etcd3 -e etcd1:2379,etcd2:2379,etcd3:2379

you can also specify a wait time in ms before retries with -t and the number of times you want it to retry before bailing out.

	 baldr etcd3 -e etcd1:2379,etcd2:2379,etcd3:2379 -t 5000 -r 10

micro

the micro command will look in the go-micro registry to a micro service if its not registered it will retry a few time untill its there or it bails out.

	baldr micro -s foo.service -g etcd3:2379

you can also specify a wait time in ms before retries with -t and the number of times you want it to retry before bailing out.

	 baldr micro -s foo.service -g etcd3:2379 -t 5000 -r 10

Elasticsearch

the elasticsearch command will wait for a elasticsearch instance to ready to accept connections before continuing or it will fails after some time.

	baldr elasticsearch -s http://localhost:9200

you can also specify a wait time in ms before retries with -t and the number of times you want it to retry before bailing out.

	 baldr elasticsearch -s http://localhost:9200 -t 5000 -r 10

baldr's People

Contributors

lacion avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.