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
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 ../
.