The build scripts in this repository require:
- bash 4+. To update to newer bash on OS X, see: https://johndjameson.com/blog/updating-your-shell-with-homebrew/
- Docker Desktop. To build multi-arch images (heroku-24 and beyond),
the
containerdsnapshotter feature should be enabled.
To build the base images locally, run this from the repo root:
bin/build.sh STACK_VERSION
For example:
./bin/build.sh 24
Add the package you want to the appropriate setup.sh for example heroku-24/setup.sh:
+ libc6-devOnce done, run bin/build.sh locally to generate the corresponding installed-packages* files. Multi-arch base images (deploio-heroku:24 and beyond) will produce an installed-packages-$ARCH.txt for each architecture.
The *-build variants include all the packages from the non-build variant by default. This means that if you're adding a package to both, you only need to add them to the non-build variant. The example above will add libc6-dev to both heroku-24 and heroku-24-build.
We use GitHub Actions to build and release the base images:
- Any push to
mainwill build the images (proves that images can be build) - A nightly job pushes
nightlytagged GitHub Container Registry variants (such asghcr.io/ninech/deploio-heroku:24-build.nightly). - A special release pipeline will run every Sunday automatically and create a new
stabletag of therunandbuildimages. A new tag and github release will also be created automatically. This pipeline can also be started manually to quickly release a newstableversion.
The message attached to the github release will contain all changed Ubuntu
packages (and their versions) and messages made by the conventional commit
preambles fix, feat and BREAKING CHANGE.