buildpacks / packs

Buildpack cloud builders for the classic v2a (Heroku-style) and v2b (CF-style) buildpacks
https://buildpacks.io
Apache License 2.0
15 stars 8 forks source link

Packs

Build Status GoDoc

This repo contains Packs: buildpack cloud builders for the Cloud Foundry and Heroku buildpacks.

These cloud builders are available on Docker Hub.

Quick Start: Cloud Foundry Packs

Build:

docker run --rm -v "$(pwd)/app:/workspace" -v "$(pwd)/out:/out" packs/cf:build

Run:

docker run --rm -P \
    -v "$(pwd)/out:/workspace" \
    packs/cf:run -droplet droplet.tgz -metadata result.json

Export to Docker daemon:

docker run --rm \
    -v "$(pwd)/out:/workspace" \
    -v "/var/run/docker.sock:/var/run/docker.sock" \
    packs/cf:export -daemon -droplet droplet.tgz -metadata result.json my-image

Export to Docker registry:

docker run --rm \
    -v "$(pwd)/out:/workspace" \
    -v "$HOME/.docker/config.json:/root/.docker/config.json" \
    packs/cf:export -droplet droplet.tgz -metadata result.json my-image