Recently the company that owns development for Ubuntu (Canonical) just announced it is dropping support for lucid 64 which is Ubuntu 10.04 LTS. What does this mean for Cloud Foundry and the community buildpacks?
Well nothing really but there is a couple gotcha’s you should know about.
I have seen issues with the following buildpacks, this is not a comprehensive list but the ones I at least know about.
PHP - https://github.com/cloudfoundry/php-buildpack.git
Static Build Pack - https://github.com/cloudfoundry/staticfile-buildpack.git
These issues are documented in a couple StackOverflow posts but we are going to go through what is causing it and how to fix it.
If you are pushing an app to Cloud Foundry and getting an error message like the following there is a workaround you need to do to get the community buildpack’s to work.
For example I have a super simple PHP app on Github I use for debugging, it is located here. For this blog post we are going to use that app.
|
|
What this is saying is the instance of Cloud Foundry that you are running on the default stack you get is an old version of Ubuntu. The PHP buildpack excepts the newer version of linux. This stack is called cflinuxfs2
also known as Ubuntu 14.04
.
To work around this you just need to specify the stack you want to use.
|
|
More information can be found on this issue on Github.