Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-buildpacks #51

Closed
lazydino opened this issue Mar 30, 2016 · 4 comments
Closed

multi-buildpacks #51

lazydino opened this issue Mar 30, 2016 · 4 comments

Comments

@lazydino
Copy link

@lazydino lazydino commented Mar 30, 2016

Does deis workflow slugbuilder support multi-buildpacks? I want to try a special build pack at https://github.com/lastko/heroku-buildpack-edgejs Would I be able to configure primary and secondary build packs as it mentioned there?

@bacongobbler
Copy link
Member

@bacongobbler bacongobbler commented Mar 30, 2016

yes. use the multi-buildpack buildpack. See https://github.com/ddollar/heroku-buildpack-multi

@mboersma
Copy link
Member

@mboersma mboersma commented Mar 30, 2016

Slugbuilder specifically contains Heroku's multi-buildpack at https://github.com/heroku/heroku-buildpack-multi, a fork of ddollar's. I retested this recently with https://github.com/dzuelke/heroku-multipack-nodejs-php-example, so you could also check that repository for a working example.

@lazydino
Copy link
Author

@lazydino lazydino commented Mar 30, 2016

Hi,

I wasn't able to set BUILDPACK_URL with ddollar's fork, or any other build pack

root@UBC809:~/edgetest# deis config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
Creating config... Error:
404 Not Found
detail: Not found.

root@UBC809:~/edgetest# deis config:set BUILDPACK_URL=https://github.com/dpiddy/heroku-buildpack-ruby-minimal
Creating config... Error:
404 Not Found
detail: Not found.

What goes wrong? I am running deis against GKE..

Since deis does not support buidlpacks:set and buildpacks:add , would I be fine just create a .buildpacks at the root of my repos like

https://github.com/lastko/heroku-buildpack-edgejs.git
https://github.com/sibeliusseraphini/heroku-buildpack-nodejs-bower-grunt

as the heroku-buildpack-nodejs-bower-grunt as my 'primary buildpack'?

@bacongobbler
Copy link
Member

@bacongobbler bacongobbler commented Mar 30, 2016

@lazydino that 404 error means the application you are pointing to is incorrect. You're likely in the wrong directory. Try running the same command with -a to explicitly call out the application name you wish to set.

Since deis does not support buidlpacks:set and buildpacks:add

heroku buildpacks:set is the same as heroku config:set BUILDPACK_URL=.... It's just an alias, similar to how deis pull is an alias for deis builds:create. :)

would I be fine just create a .buildpacks at the root of my repos like

https://github.com/lastko/heroku-buildpack-edgejs.git
https://github.com/sibeliusseraphini/heroku-buildpack-nodejs-bower-grunt

as the heroku-buildpack-nodejs-bower-grunt as my 'primary buildpack'?

Since we already have heroku-buildpack-multi built into slugbuilder, yes it should be fine to create a .buildpacks file, commit it to the repository and push. You'll probably want heroku-buildpack-nodejs-bower-grunt as the first one on the list if it's your primary buildpack, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants