Heroku-style application builds using Docker and Buildpacks. Used by Dokku to make a mini-Heroku.
Buildpacks should generally just work, but many of them make assumptions about their environment. So Buildstep has a list of officially supported buildpacks that are built-in and ready to be used.
The buildstep script uses a buildstep base image that needs to be built. It must be created before you can use the buildstep script. To create it, run:
$ make build
This will create an image called progrium/buildstep
that contains all supported buildpacks and the
builder script that will actually perform the build using the buildpacks.
Running the buildstep script will take an application tar via STDIN and the destination image name as an argument.
The tarball is deployed inside a new container based on progrium/buildstep
, and the builder
script is run in
the container. The container is then committed to create an image with the specified name.
$ cat myapp.tar | ./buildstep myapp
If you didn't already have an application tar, you can create one on the fly.
$ tar cC /path/to/your/app . | ./buildstep myapp
The resulting image contains your built app, ready to go. The builder script also parses the Procfile and produces a starter script that takes a process type. Run your app with:
$ docker run -d myapp /bin/bash -c "/start web"
Custom buildpacks can be installed by committing a file in the root of your git repository named .env
This file should contain a line export BUILDPACK_URL=<repository>
specifying the git repository providing
the buildpack.
If your buildpack needs extra packages these can be installed by the buildpack using bin/compile.
MIT
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。