Skip to content
/ dockr Public

Automatically build docker image and push it to your registry.

License

Notifications You must be signed in to change notification settings

bjarneo/dockr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockr

Travis

Automatically build docker image and push it to your registry.

Installation

$ npm i --save dockr

Usage

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

$ npm test

Inspiration

grunt-dockerbuild

Contribution

Contributions are appreciated.

License

MIT-licensed. See LICENSE.

About

Automatically build docker image and push it to your registry.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published