Task management tool for docker image
Project description
# Karakuri
Task manager for docker image
## Requirements
* Python2
* pip
* Docker(either local or remote)
## Installation
pip install karakuri
or
pip install git+https://github.com/rail44/karakuri.git
## Config
Create `karakuri.yml` for your product.
example:
tasks:
start: bundle exec rake start
test: bundle exec rspec
default: start
links:
- db
- cache
services:
db:
image: orchardup/postgresql
ports:
- "5432"
cache:
image: tutum/memcached
ports:
- "11211"
Base systax is equivalent [fig.yml](http://orchardup.github.io/fig/yml.html).
Environment variables are avilable for linked containers.
It is able to be used same as [fig's](http://orchardup.github.io/fig/env.html).
For above example, you can use `$DB_1_PORT` in your app's database config.
**Karakuri** will try to find `karakuri.yml` from root(`/`) or `WORKDIR`.
You must add it to either.
## Usage
docker build -t <image_name> .
karakuri <image_name> <command>
If `$DOCKER_HOST` is defined, **Karakuri** will set it for Docker daemon.
For example, you can be able to run test with
karakuri <image_name> do test
Task manager for docker image
## Requirements
* Python2
* pip
* Docker(either local or remote)
## Installation
pip install karakuri
or
pip install git+https://github.com/rail44/karakuri.git
## Config
Create `karakuri.yml` for your product.
example:
tasks:
start: bundle exec rake start
test: bundle exec rspec
default: start
links:
- db
- cache
services:
db:
image: orchardup/postgresql
ports:
- "5432"
cache:
image: tutum/memcached
ports:
- "11211"
Base systax is equivalent [fig.yml](http://orchardup.github.io/fig/yml.html).
Environment variables are avilable for linked containers.
It is able to be used same as [fig's](http://orchardup.github.io/fig/env.html).
For above example, you can use `$DB_1_PORT` in your app's database config.
**Karakuri** will try to find `karakuri.yml` from root(`/`) or `WORKDIR`.
You must add it to either.
## Usage
docker build -t <image_name> .
karakuri <image_name> <command>
If `$DOCKER_HOST` is defined, **Karakuri** will set it for Docker daemon.
For example, you can be able to run test with
karakuri <image_name> do test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
karakuri-0.2.6.tar.gz
(3.5 kB
view hashes)
Built Distributions
karakuri-0.2.6-py2.7.egg
(7.1 kB
view hashes)
Close
Hashes for karakuri-0.2.6.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7a8c1fa257163a8ca723bfec82e025d2a40694d98fb0777ebd849f40e3155c5 |
|
MD5 | f86a4b40c44cbc228047d136e1009339 |
|
BLAKE2b-256 | ebf8990b9b41584623634571f7269c8c29f50d5e9cb17470bf04460bb6772ff6 |