Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bitliner/docky

Docky - A toolkit for docker
https://github.com/bitliner/docky

Last synced: about 20 hours ago
JSON representation

Docky - A toolkit for docker

Awesome Lists containing this project

README

        

# This package is deprecated and outdated

# Docky - Toolkit for Docker

Docky generates **bash** scripts to manage multiple Docker containers.

Docker containers are described inside a Yaml file, following the same format of [docker-compose](https://docs.docker.com/compose/).

## Requirements

* [NPM - Node Package Manager](http://npm.org)
* Bash

## Installation

```js
npm install -g docky
```

## Usage

1. create `docker-compose.yml` file. It looks like
```
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
links:
- redis
redis:
image: redis
```

2. run `docky ./docker-compose.yml` to generate `docky.sh` file
4. run `./docky.sh` to list avaiable commands

**Example of available commands**

![Alt text](./docs/usage.png)

## Workflow

### `run` command

## Commands

### Commands to manage all container at once

```sh
$ ./docky run # run all containers
```
```sh
$ ./docky start # start all containers
```
```sh
$ ./docky stop # stop all containers
```
```sh
$ ./docky build # build all images
```
```sh
$ ./docky push # push all images
```
```sh
$ ./docky pull # pull all images
```

### Commands to manage a single container

Just add `_` to the commands above to manage all containers at once.

```sh
$ ./docky run_ # run container
```
```sh
$ ./docky start_ # start container
```
```sh
$ ./docky stop_ # stop container
```
```sh
$ ./docky build_ # build image
```
```sh
$ ./docky push_ # push image
```
```sh
$ ./docky pull # pull all images
```