Skip to content

Commit

Permalink
Adds make console task to ease development
Browse files Browse the repository at this point in the history
Goal is to quickly get into a docker container so I can test out changes
to the buildpack. I've added some basic documentation because I always
have to figure these commands out from scratch.
  • Loading branch information
gaffneyc committed May 8, 2020
1 parent 5294d61 commit 3e369e3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ ROOT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
clean:
rm -rf src/ dist/

console:
@echo "Console Help"
@echo
@echo "Specify a verion to install:"
@echo " echo 5.2.1 > /env/JEMALLOC_VERSION"
@echo
@echo "To vendor jemalloc:"
@echo " bin/compile /app/ /cache/ /env/"
@echo

@docker run --rm -ti -v $(shell pwd):/buildpack -e "STACK=heroku-18" -w /buildpack heroku/heroku:18-build \
bash -c 'mkdir /app /cache /env; exec bash'

# Download missing source archives to ./src/
src/jemalloc-%.tar.bz2:
mkdir -p $$(dirname $@)
Expand Down

0 comments on commit 3e369e3

Please sign in to comment.