Code Monkey home page Code Monkey logo

stack-images's Introduction

Heroku Stack Images

The provided bin/cedar.sh is the basis of a cedar stack image.

cd stack-images
mkdir -p tmp/log
vagrant up
vagrant ssh

sudo /vagrant/bin/build-stack 2.0.0 /vagrant/bin/cedar.sh
-----> Starting build
-----> Installing build tools
       Hit http://us.archive.ubuntu.com lucid Release.gpg
       ...
-----> Cleaning up. Logs in /tmp/log/build-stack.log

sudo /vagrant/bin/capture-stack 2.0.0
-----> Starting capture
-----> Creating image file /tmp/cedar64-2.0.0.img
       24+0 records in
       ...
-----> Cleaning up. Logs in /tmp/log/capture-stack.log

sudo /vagrant/bin/install-stack /tmp/cedar64-2.0.0.img.gz
-----> Starting install
-----> Gunzipping image /tmp/cedar64-2.0.0.img.gz
-----> Mounting image /mnt/stacks/cedar64-2.0.0

Stack images are generally pushed to S3 and installed from there.

sudo /vagrant/bin/push-stack 2.0.0 stacks_bucket \
  AWS_ACCESS_KEY_ID=xxx AWS_SECRET_ACCESS_KEY=xxx
-----> Starting push
-----> Uploading files
       /tmp/cedar64-2.0.0.img.gz -> s3://stacks_bucket/cedar64-2.0.0.img.gz
       ...
-----> Signing URLs
       http://s3.amazonaws.com/noah_herokustacks/cedar64-2.0.0.img.gz?AWS...
       http://s3.amazonaws.com/noah_herokustacks/cedar64-2.0.0.img.md5

sudo /vagrant/bin/install-stack \
  "http://s3.amazonaws.com/noah_herokustacks/cedar64-2.0.0.img.gz?AWS..."
-----> Starting install
-----> Downloading and gunzipping image
-----> Mounting image /mnt/stacks/cedar64-2.0.0

Debian Packaging

Make sure you have debhelper (debuild) installed and run all commands inside an amd64 linux box.

First, edit the debian/changelog file. Make sure you set the correct version and distribution (lucid or precise), dch can help:

dch -i

Then, build the package (in a linux amd64 box):

debuild -us -uc

The package will be in the top dir ../.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.