Start here: http://mariash.github.io/learn-bosh/, then goto: http://bosh.io/docs/create-release.html
- Prepare the environment with bosh lite.
- Create the workspace for the new release:
bosh init release <release_name>
- Create the source packages to compile:
bosh generate package <package_name>
- After defining the compilation steps, add the source packages
bosh add blob <package.tgz> <package_name>
- Create the job (or jobs) to run:
bosh generate job <job_name>
and write the monit, spec and startup files - Create a manifest for the new project: http://bosh.io/docs/deployment-manifest.html, using
cd templates && make_manifest warden
. Option: copy from another simple release like: https://github.com/cloudfoundry-community/carbon-c-relay-boshrelease bosh status
has to be pointing to the deployment manifest created before.bosh create release --force && bosh upload release && bosh deploy
- Errors?,
bosh task N --debug
where N is the director task number. - If job did not start or you want to see how it works, ssh to the container with:
bosh ssh --strict_host_key_checking no
- Inside the vm/container go to
/var/vcap/jobs/JOB/
. To see monit status:sudo /var/vcap/bosh/bin/monit status
. Logs, pids, should be in/var/vcap/sys
Once everything is done, create the release wihout --force
and upload to S3