Skip to content

Instantly share code, notes, and snippets.

@gjreasoner
Last active February 15, 2022 04:23
Show Gist options
  • Save gjreasoner/b6643ec5e077d2f76afb66fc6cec4698 to your computer and use it in GitHub Desktop.
Save gjreasoner/b6643ec5e077d2f76afb66fc6cec4698 to your computer and use it in GitHub Desktop.
Test herokuish buildpack at a certain version
# Enter herokuish
docker run --rm -it -v $(pwd):/tmp/app gliderlabs/herokuish:latest-18 bash

# Command for running herokuish and checking current versions
herokuish version

herokuish: 0.5.34
buildpacks:
  heroku-buildpack-multi     v1.0.0
  heroku-buildpack-ruby      v236
  heroku-buildpack-nodejs    v189
  heroku-buildpack-clojure   v87
  heroku-buildpack-python    v205
  heroku-buildpack-java      v69
  heroku-buildpack-gradle    v36
  heroku-buildpack-scala     v91
  heroku-buildpack-play      v26
  heroku-buildpack-php       v205
  heroku-buildpack-go        v160
  heroku-buildpack-nginx     v16
  buildpack-null             v3   
 
# Install latest buildpack
# (in this case, v205 to v210 for php, we want to replace default `09_buildpack-php` folder)
herokuish buildpack install https://github.com/heroku/heroku-buildpack-php v210 09_buildpack-php

# Run build test
herokuish test

# Or, use `BUILDPACK_URL`, specify <git_url>#<version>
docker run --rm -it \
  -e BUILDPACK_URL="https://github.com/heroku/heroku-buildpack-php#v210" \
  -v $(pwd):/tmp/app gliderlabs/herokuish:latest-18 \
  herokuish test
  
# Get real fancy and build latest stack too
docker run --rm -it \
  -e STACK=heroku-20
  -e BUILDPACK_URL="https://github.com/heroku/heroku-buildpack-php#v210" \
  -v $(pwd):/tmp/app gliderlabs/herokuish:latest-20 \
  herokuish test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment