Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steffenmllr/docker-butler
Create a new docker container from a github url, runs them, looks up old container names and stops them
https://github.com/steffenmllr/docker-butler
Last synced: 17 days ago
JSON representation
Create a new docker container from a github url, runs them, looks up old container names and stops them
- Host: GitHub
- URL: https://github.com/steffenmllr/docker-butler
- Owner: steffenmllr
- Created: 2014-06-28T17:48:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-28T08:39:51.000Z (over 8 years ago)
- Last Synced: 2024-05-22T22:33:02.963Z (6 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 11
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
docker-butler
==============> Create a new docker container from a git url, builds the container, looks up old container names, runs the container, stops the old containers and cleans up stopped containers
##### Install
`npm i docker-butler -g`#### Example
`dbutler -g https://github.com/enokd/docker-node-hello.git -b master -e NODE_ENV=production -t namespace/myapp`##### Usage
```
Usage: dbutler [options]Options:
-g, --git The url to your github repo [required]
-t, --tag The tag for the container [required]
--socket Your socket docker connection, eg /var/run/docker.sock
-h, --host Your docker host: eg. http://192.168.42.43:2375
-b, --branch The branch you want to deploy [default: "master"]
--dns The DNS, eg. 8.8.8.8
-v, --volumes The volume eg /some/host_folder:/some/container_folder (host:container)
--wait Time to wait to check if the container is running [default: 1000]
--env The env vars
-s, --socket [default: "/var/run/docker.sock"] [default: "/var/run/docker.sock"]
```