Using Buildpacks

tsuru supports deploying applications via Heroku Buildpacks.

Buildpacks are useful if you’re interested in following Heroku’s best practices for building applications or if you are deploying an application that already runs on Heroku.

tsuru uses Buildstep Docker image to make deploy using buildpacks possible.

Creating an Application

What do you need is create an application using buildpack platform:

  1. $ tsuru app-create myapp buildpack

Deploying your Application

Use git push to deploy your application.

  1. $ git push <REMOTE-URL> master

Included Buildpacks

A number of buildpacks come bundled by default:

Using a Custom Buildpack

To use a custom buildpack, set the BUILDPACK_URL environment variable.

  1. $ tsuru env-set BUILDPACK_URL=https://github.com/dpiddy/heroku-buildpack-ruby-minimal

On your next git push, the custom buildpack will be used.

Creating your own Buildpack

You can follow this Heroku documentation to learn how to create your own Buildpack: https://devcenter.heroku.com/articles/buildpack-api.

原文: https://docs.tsuru.io/1.6/using/buildpacks.html