https://github.com/runnable/docker-image-builder
Build Docker images from remote sources! (NOT THIS ONE)
https://github.com/runnable/docker-image-builder
Last synced: 10 months ago
JSON representation
Build Docker images from remote sources! (NOT THIS ONE)
- Host: GitHub
- URL: https://github.com/runnable/docker-image-builder
- Owner: Runnable
- Created: 2014-04-21T23:00:51.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-09-04T18:38:45.000Z (almost 11 years ago)
- Last Synced: 2025-04-12T12:15:39.708Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 223 KB
- Stars: 6
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project is no longer actively maintained.
# docker-image-builder
[](https://travis-ci.org/Runnable/docker-image-builder) [](https://david-dm.org/Runnable/docker-image-builder) [](https://david-dm.org/Runnable/docker-image-builder#info=devDependencies)
Builds docker images using remote Dockerfiles and source directories from S3
## Installation
npm install Runnable/docker-image-builder
## Example
For an example, see `example.js`. Replace the AWS placeholders with valid credentials, and populate the `context` with valid information (`source`, and optionally `versions`). This is how you would use this module externally.
This also assumes you have Docker running locally on the standard port (`4243`).
Be sure to run `npm install` prior to running the example.
Finally, run the example:
node example.js
You can see more verbose debugging output by setting `DEBUG` before running.
DEBUG=docker-image-builder:* node example.js
## File Versions
This now supports specifying S3 file versions for specific keys. See the `example.js` for how it is used, but here is the gist: in the `context`, include a key `versions` which is a map of `Key`: `VersionId` and is used to retrieve specific versions of an object out of S3.
## Tests
There is one test written, which can be run using `npm test`. It currently uses `nock` to mock all the calls to S3 and Docker, which makes it run quickly but only test the functionality of the written logic.