Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjarneo/dockr
Automatically build docker image and push it to your registry.
https://github.com/bjarneo/dockr
Last synced: 3 days ago
JSON representation
Automatically build docker image and push it to your registry.
- Host: GitHub
- URL: https://github.com/bjarneo/dockr
- Owner: bjarneo
- License: mit
- Created: 2016-04-10T09:33:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T14:45:05.000Z (12 months ago)
- Last Synced: 2024-10-08T04:24:34.032Z (about 1 month ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dockr
======
![Travis](https://travis-ci.org/bjarneo/dockr.svg?branch=master)Automatically build docker image and push it to your registry.
Installation
------
```bash
$ npm i --save dockr
```Usage
------
```js
const execute = require('dockr');execute({
registry: 'docker.yourRegistry.com', // default '' which pushes to docker.io/library
username: 'username', // default ''
imageName: 'myawesomeimage', // default ''
dockerFileLocation: '.', // default '.' current location,
timestamp: true, // default false. Append timestamp to the docker tag,
verbose: true // default false. Console log docker process.
}).then(tag => {
console.log('Image successfully pushed to %s', tag);
}).catch(console.error);
```Tests
------
```bash
$ npm test
```Inspiration
------
[grunt-dockerbuild](https://github.com/olesku/grunt-dockerbuild)Contribution
------
Contributions are appreciated.License
------
MIT-licensed. See LICENSE.