Heroku Buildpack R Build - Second Edition
Build for the heroku-buildpack-r buildpack.
- You need a GitHub account
- Make
- Docker
- Access to Docker Hub for the
ubuntu:*
andheroku/heroku:*
docker images - AWS Account
- AWS cli installed
- AWS credentials configured as per Standardized Way to Manage Credentials
- Access to S3 and a provisioned bucket
- Heroku Account
To build, test and publish artifacts for the buildpack:
make build
make test
make publish
The following build variables are available:
Variable | Default | Notes |
---|---|---|
HEROKU_STACK |
22 | Corresponds to numeric suffix of the Heroku Stack. Valid values include 18 , 20 and 22 . |
UBUNTU_IMAGE |
ubuntu:22.04 | The docker image for the Ubuntu image. Should correspond with the Ubuntu version of the Heroku Stack. |
R_VERSION |
4.2.1 | The version of R to be built. |
CRAN_VERSION |
cran40 | The CRAN repository version. |
BUILDPACK_VERSION |
latest | Version of the buildpack. This maps to the directory used on S3. Valid values include at least latest and test . |
E.g. To build for the heroku-20
stack
export HEROKU_STACK=20
make build
make test
make publish
- Original virtualstaticvoid/heroku-buildpack-r-build repository.
- Build snippets from the rstudio/r-builds project.
- Test snippets from the rstudio/r-docker project.
MIT License. Copyright (c) 2020 Chris Stefano. See LICENSE for details.