0.0.35 • Published 2 years ago
dockerish v0.0.35
dockerish
Dockerish is an easy way to build, run and stop containers with a local config file based on a template.
Installation
npm install dockerish -g
Creating a Dockerish Target
In your repository, create a file called dockerish.template.yml
:
container:
name: container/name
image: container-image
run:
daemon: true
restart: always
portmaps:
- host: <%= port %>
container: 9000
dockerfile:
from: node
maintainer: you you@you.com
commands: !
WORKDIR ...
ADD ...
RUN ...
ENTRYPOINT ... http://<%= hostname %> ...
EXPOSE 9000
Creating a Dockerish Config
Create a file called dockerish.config.json
(e.g. in the same directory):
{
"hostname": "%hostname:8080",
"port": 9000
}
Run Dockerish
- Build:
dockerish --build
- Run:
dockerish --run
- Stop:
dockerish --stop
Options
-h, --help shows help
-c, --config=FILE dockerish config file, defaults to ./dockerish.config.json
-n, --namespace=NAMESPACE config sub name space (optional)
-t, --target=FILE dockerish template file or folder containing the template file, defaults to ./dockerish.template.yml
-r, --run runs the container (add additional parameters after --)
-s, --stop stops the container
-b, --build builds the container
-d, --debug debug
License
Apache-2.0
0.0.35
2 years ago
0.0.34
2 years ago
0.0.33
2 years ago
0.0.32
2 years ago
0.0.31
3 years ago
0.0.30
3 years ago
0.0.29
3 years ago
0.0.28
3 years ago
0.0.27
3 years ago
0.0.26
4 years ago
0.0.25
4 years ago
0.0.22
5 years ago
0.0.23
5 years ago
0.0.24
5 years ago
0.0.21
5 years ago
0.0.20
5 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago