container-factory

command module
v0.0.0-...-c284f1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2015 License: ISC Imports: 12 Imported by: 0

README

container-factory

container-factory produces Docker images from tarballs of application source code. It accepts archives with Dockerfiles, but if your application's language is supported, it can automatically add a suitable Dockerfile.

Currently, only node.js is supported, marked by the presence of a package.json.

License

container-factory is distributed under the terms of the ISC license.

Installation

Make sure you have Docker set up. We access the Docker API, so we pass that through when running the container. The Docker server is autodetected in the same way as the Docker CLI does, and like the Docker CLI, we default to /var/run/docker.sock.

Here's how to run container-factory in a container:

docker run -d -p 9001:3000 -v /var/run/docker.sock:/var/run/docker.sock lsqio/container-factory

API

POST /build

Build a container. Takes an application tarball as body. Modeled on Docker's /build API

Parameters:

* t: Docker tag to publish the resulting Docker image as.
Response

Docker-style progress reporting, with the push happening right after the build.

Build progress:

{"stream": "Step 1..."}
{"stream": "..."}
{"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}

Push progress:

{"status": "Pushing..."}
{"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
{"error": "Invalid..."}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/codegangsta/negroni
Package negroni is an idiomatic approach to web middleware in Go.
Package negroni is an idiomatic approach to web middleware in Go.
_workspace/src/github.com/docker/docker/pkg/pools
Package pools provides a collection of pools which provide various data types with buffers.
Package pools provides a collection of pools which provide various data types with buffers.
_workspace/src/github.com/fsouza/go-dockerclient
Package docker provides a client for the Docker remote API.
Package docker provides a client for the Docker remote API.
_workspace/src/github.com/fsouza/go-dockerclient/testing
Package testing provides a fake implementation of the Docker API, useful for testing purpose.
Package testing provides a fake implementation of the Docker API, useful for testing purpose.
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL