0.0.35 • Published 7 months ago

dockerish v0.0.35

Weekly downloads
29
License
Apache-2.0
Repository
github
Last release
7 months ago

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

7 months ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.22

4 years ago

0.0.23

4 years ago

0.0.24

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago