forked from tadas-s/heroku-buildpack-pdftotext
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
31 lines (25 loc) · 1.51 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
build: build-heroku-22 build-heroku-18 build-heroku-16 build-cedar-14 build-cedar-10
build-heroku-22:
@echo "Building pdftotext in docker for heroku-22..."
@docker run -v $(shell pwd):/buildpack --rm -it -e "STACK=heroku-22" heroku/heroku:22-build bash -c 'cd /buildpack; scripts/build_pdftotext /buildpack/bin/pdftotext-heroku-22'
@echo ""
build-heroku-18:
@echo "Building pdftotext in docker for heroku-18..."
@docker run -v $(shell pwd):/buildpack --rm -it -e "STACK=heroku-18" heroku/heroku:18-build bash -c 'cd /buildpack; scripts/build_pdftotext /buildpack/bin/pdftotext-heroku-18'
@echo ""
build-heroku-16:
@echo "Building pdftotext in docker for heroku-16..."
@docker run -v $(shell pwd):/buildpack --rm -it -e "STACK=heroku-16" heroku/heroku:16-build bash -c 'cd /buildpack; scripts/build_pdftotext /buildpack/bin/pdftotext-heroku-16'
@echo ""
build-cedar-14:
@echo "Building pdftotext in docker for cedar-14..."
@docker run -v $(shell pwd):/buildpack --rm -it -e "STACK=cedar-14" heroku/cedar:14 bash -c 'cd /buildpack; scripts/build_pdftotext /buildpack/bin/pdftotext-cedar-14'
@echo ""
build-cedar-10:
@echo "Building pdftotext in docker for cedar..."
@docker run -v $(shell pwd):/buildpack --rm -it -e "STACK=cedar" heroku/cedar bash -c 'cd /buildpack; scripts/build_pdftotext /buildpack/bin/pdftotext-cedar'
@echo ""
shell:
@echo "Opening heroku-16 shell..."
@docker run -v $(shell pwd):/buildpack --rm -it -e "STACK=heroku-16" -e "PORT=5000" heroku/heroku:16-build bash -c 'cd /buildpack; bash'
@echo ""