multi-buildpack | Cloud Foundry buildpack for running multiple buildpacks | Cloud library
kandi X-RAY | multi-buildpack Summary
kandi X-RAY | multi-buildpack Summary
Cloud Foundry buildpack for running multiple buildpacks
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- CleanupStagingArea cleans up staging area
- main implementation of libbuildpack .
- WriteStartCommand writes the webStartCommand to outputFile
- NewMultiCompiler returns a new MultiCompiler .
- GetBuildpacks returns the list of buildpacks
- removeAll removes r from s and returns s .
- printDotNet prints a dot network
- Hello shows the python server
multi-buildpack Key Features
multi-buildpack Examples and Code Snippets
Community Discussions
Trending Discussions on multi-buildpack
QUESTION
Trying to use Heroku CI with Phoenix and heroku buildpack elixir.
Tests are running, but getting error message
psql: FATAL: database "u13792" does not exist
or
role "postgres" does not exist
.
ANSWER
Answered 2019-Feb-09 at 14:47OK, apparently, the config.test.ex needed a DATABASE_URL var.
For anyone coming after me, the in-dyno stuff wasn't necessary.
So the app.json can look like this:
QUESTION
My project is using the latest ruby-buildpack which currently loads nodejs 6.14.4. I'd like to use a more current version of nodejs. What's the best way to get it exposed to the application? Does multi-buildpacks solve this problem, and if so, do I list the nodejs buildpack before or after the ruby buildpack in the manifest file? Or, would it be better to package a custom buildpack?
...ANSWER
Answered 2018-Dec-11 at 20:17What's the best way to get it exposed to the application? Does multi-buildpacks solve this problem,
I think multi-buildpacks should work for you. You can put Nodejs as a supply buildpack which would tell it to install Node.js, whatever version you want. Then the Ruby buildpack would run and Node.js should be available on the path while it runs so you can use it to do whatever you want.
and if so, do I list the nodejs buildpack before or after the ruby buildpack in the manifest file
The last buildpack should be the buildpack which supplies the command to start your app. Only the final buildpack is allowed to pick the command which starts your app. Other buildpacks, called supply buildpacks, only contribute/install dependencies.
It sounds like that should be the Ruby buildpack in your case.
Or, would it be better to package a custom buildpack?
I'd strongly advise against this. Forking and maintaining a buildpack is a lot of work. Let other people do this work for you and you'll be a lot happier :)
QUESTION
I'm trying to deploy a nodejs app to swisscom application cloud. The app uses the node-java module. While staging the app, I get an error message:
...ANSWER
Answered 2017-Sep-11 at 14:05because there seems no way to add custom packages to the cf base image (cflinuxfs2) provided by swisscom, I forked the official cloud foundry buildpack and let it install the openjdk-7-jdk package before doing all the nodejs related stuff (https://github.com/juckerf/nodejs-openjdk-buildpack)
(unfortunately the multi-buildpack with the nodejs buildpack and herokus apt buildpack didn't work for me because the nodejs buildpack was executed before the apt buildpack, regardless of the order in the multi-buildpack.yml
)
QUESTION
My problem is: I'm trying to send mails within a cloud foundry container, but I don't have root access to install mailutils (or anything else) via apt install. I read about pre-built binaries and found this project: Running Cron Jobs on Cloud Foundry. In short it contains a pre-built binary from supercronic to run cron jobs (so no installation needed).
Is it possible to build a binary from mailutils using a virtual machine (running Ubuntu) on which I have root access? Or is there another solution? We basically only need to be able to send mails.
I know that one can send mails using any provider (like Gmail) or mail relais. That's not what I'm looking for. I'm fine if only scripts inside this "mail-container" can send mails. I also tried the apt-buildpack together with the multi-buildpack, but that didn't install any package.
...ANSWER
Answered 2018-Apr-27 at 12:31I doubt you'll be able to get a functional MTA installed inside your container on Cloud Foundry. You'll never get root access in the container, so you would have to use apt-buildpack or even worse, build one from source. I don't want to say it's impossible, cause someone will go do it out of spite, but it's certainly a lot more work than you really need to do here.
Instead what I would suggest is one of the following:
a.) Use the SMTP libraries of your language of choice to send mail directly from your application. As long as you're only sending email this works perfectly fine.
b.) You could use a script which implements a.) that you shell out to from your application. A quick search found this. I have not tested this script, but I'm linking to it because it's an example of what I mean here.
Hope that helps!
QUESTION
I've instantiated two Heroku apps successfully: my-app-prod and my-app-test. There are specific environment variables I've configured in the Heroku app settings. I am using the standard configuration files in Phoenix: config.exs, test.exs, prod.exs, dev.exs.
After configuring my-app-test in Heroku with the app variable MIX_ENV=test, it is still loading variables from prod.exs.
Are there any additional steps I'm missing so that my app uses test.exs?
I followed all the instructions here: https://hexdocs.pm/phoenix/heroku.html
When I run git push, I can verify it's using prod.exs based on the following output.
...ANSWER
Answered 2017-Sep-14 at 00:26In your Procfile
where it says:
QUESTION
I'm using Jenkins to run tests before deploying to Heroku using a git publisher plugin. I want to sandwich my deploy with maintenance mode ON/OFF but don't want to install the heroku toolbelt (reference) on my jenkins machine (nor do I want to go to the Web UI and toggle the maintenance mode manually). I don't want to install the heroku toolbelt on jenkins because it adds to the customization and configuration I'd need to do to the jenkins installation and I want to keep my jenkins instance as disposable as possible...driven rather by source code pipelines (Jenkinsfile).
Ideas:
- utilize a docker image that has the heroku toolbelt installed on it
- utilize a multi-buildpack that does it for me?
Any suggestions or experience on how I might accomplish this?
...ANSWER
Answered 2017-Jun-23 at 18:04You can use heroku's platform api to do this: https://devcenter.heroku.com/articles/platform-api-reference#app-update
The following curl request will put your app into maintenance mode:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install multi-buildpack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page