Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zource-dev/di

Docker Infrastructure CLI for local development
https://github.com/zource-dev/di

cli docker dynamodb kafka mongodb neo4j postgres redis

Last synced: about 13 hours ago
JSON representation

Docker Infrastructure CLI for local development

Awesome Lists containing this project

README

        

# Docker Infrastructure CLI

[![CI/CD][github-image]][github-url]
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][npm-url]
[![code style: prettier][prettier-image]][prettier-url]

Command line tool to quickly spin up infrastracture using docker for local development

## Usage

Yarn:

```bash
yarn global add @zource/di
```

NPM:

```bash
npm install -g @zource/di
```

NPX:

```bash
npx @zource/di --help
```

## Requirement

Please install [docker-desktop or docker engine](https://docs.docker.com/get-docker/)

## Currently supported services

- [DynamoDB](https://hub.docker.com/r/amazon/dynamodb-local) Local default version `latest`
- [Kafka](https://hub.docker.com/r/confluentinc/cp-kafka) default version `latest`
- [MongoDB](https://hub.docker.com/_/mongo) default version `latest`
- [Neo4j](https://hub.docker.com/_/neo4j) default version `latest`
- [Postgres](https://hub.docker.com/_/postgres) default version `latest`
- [RabbitMQ](https://hub.docker.com/_/rabbitmq) default version `management-alpine`
- [Redis](https://hub.docker.com/_/redis) default version `alpine`

## Help

```bash
di --help
```

```
Usage: di [options] [command]

Docker Infrastructure CLI

Options:
-v, --version output the version number
-h, --help display help for command

Commands:
list|ls list all available services
config [options] [path] [value] show/update config
start [options] [services...] starts services
stop [services...] stops services
kill [services...] kills services
restart|rs [services...] restarts services
logs [options] logs a service
ps [service...] list services
volumes [service...] lists services volumes
size [service...] sezes services data
reset [service...] resets services config
data [service...] shows data directories
help [command] display help for command

Examples:
$ di start redis mongo
$ di kill postgres
$ di config
```

## License

Copyright 2023 Ivan Zakharchanka [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)

[npm-url]: https://www.npmjs.com/package/@zource/di
[downloads-image]: https://img.shields.io/npm/dw/@zource/di.svg?maxAge=43200
[npm-image]: https://img.shields.io/npm/v/@zource/di.svg?maxAge=43200
[github-url]: https://github.com/zource-dev/di/actions/workflows/build.yml
[github-image]: https://github.com/zource-dev/di/actions/workflows/build.yml/badge.svg
[prettier-url]: https://github.com/prettier/prettier
[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/zource-dev/di
[codecov-image]: https://codecov.io/gh/zource-dev/di/branch/master/graph/badge.svg?token=JZ8QCGH6PI
[codeclimate-url]: https://codeclimate.com/github/zource-dev/di/maintainability
[codeclimate-image]: https://api.codeclimate.com/v1/badges/0ba20f27f6db2b0fec8c/maintainability
[snyk-url]: https://snyk.io/test/npm/@zource-dev/di/latest
[snyk-image]: https://img.shields.io/snyk/vulnerabilities/github/zource-dev/di.svg?maxAge=43200