Coder Social home page Coder Social logo

doko's Introduction

Doko

A docker-based development dependency manager.

Why

Stop messing with system dependencies, running the services you need in a perfectly isolated Docker container instead, for local development only.

Install

npm i -g @egoist/doko

Built-in services

  • postgres
  • mysql
  • redis
  • chrome

Usage

Show the list of services

doko list

Add a service

Adding a service to ~/.doko/config.json:

doko add redis

# Or a custom service
doko add hello --image hello-world

Remove a service

Removing a service from ~/.doko/config.json:

doko remove redis

Starting services

doko up

Stopping services

doko down

Enable / Disable services

When you add a service, it's automatically enabled, meaning doko up, doko down will start and stop it respectively.

If you want to stop it from running, but keep its configuration in .doko/config.json, you can run:

doko disable redis

When you need it again, you can bring it back with:

doko enable redis

This command basically adds / removes the service from our internal docker compose config.

Password

Default password for postgres and mysql is password, you can update it manually in ~/.doko/services.json.

Run commands in a Docker container

doko repl <service-name>
# e.g.
doko repl postgres

Run docker-compose commands

Run doko compose to run docker-compose in ~/.doko directory, for example:

# Stop the chrome service
doko compose stop chrome

License

MIT © EGOIST

doko's People

Contributors

djyde avatar egoist avatar pinceladasdaweb 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.