Skip to main content

Upgrading App to cflinuxfs4 Important Update

· 3 min read

Ubuntu 22.04 stack (cflinuxfs4) buildpacks are here and Ubuntu 18.04 (cflinuxfs3) are retiring: upgrade your apps now!

The base OS image used by your Cloud.​gov applications is called a "stack". The stack we’ve provided to date is called cflinuxfs3, and it’s based on Ubuntu 18.04 LTS, released originally in mid 2018 with continuous security updates since then. cflinuxfs4 is a new OS image based on Ubuntu 22.04 LTS, and is now default stack in Cloud.​gov. Ubuntu 18.04 will likely no longer receive security updates in May, so we will stop supporting cflinuxfs3 in Cloud.​gov May 10th.

Who is impacted?

If you push your Cloud Foundry applications as Docker containers with cf push --docker-image , these changes do not impact you.

However, most Cloud.​gov customers deploy their applications using buildpacks, and their apps don’t have any dependency on the particular OS version that runs them. If that describes you and you have existing applications running on Cloud.​gov, this upgrade will impact you and you'll need to update the stack on your applications.

What should you do now for existing apps?

For existing applications which were created under cflinuxfs3 you will need to update the stack declaration to cflinuxfs4, there are two common ways of doing this detailed below. The options below only have to be run once for each application on cflinuxfs3, once the stack is set for an application, it is persistent until changed with any of these two steps.

  1. Push the app manually and specify the stack with the cf cli:

    cf push MY-APP -s cflinuxfs4
  2. Use the stack-auditor cf cli plugin to change the stack without having to push the application. Documentation for using this plugin is at https://docs.cloudfoundry.org/adminguide/stack-auditor.html#change-stacks, the basic workflow is:

    • Install the plugin
    • Use the cf cli to target the org and space for your existing application
    • Run cf change-stack APP-NAME cflinuxfs4 to change the app to the cflinuxfs4 stack

    Each application will take about a minute or so to run the cf change-stack... command depending on the size of the droplet.

What should you do now for new apps?

For any new applications, simply run a cf push to pick up the new cflinuxfs4 stack:

cf push MY-APP

Timeline

WhenWhatAvailable StacksDefault Stack
March 23Roll out all cflinuxfs4 buildpackscflinuxfs3, cflinuxfs4cflinuxfs3
March 23 - April 27Developers test and update apps to use cflinuxfs4cflinuxfs3, cflinuxfs4cflinuxfs3
April 27Support ends for cflinuxfs3. All new apps pushed will use cflinuxfs4 by default, existing apps will need to be migrated.cflinuxfs3, cflinuxfs4cflinuxfs4
April 27 - June 29Explicitly opt to use cflinuxfs3 if you need more timecflinuxfs3, cflinuxfs4cflinuxfs4
June 29cflinuxfs3 buildpacks will be retired from the platform, apps needing cflinuxfs3 buildpacks will need to reference them via URL on the cf pushcflinuxfs3, cflinuxfs4cflinuxfs4
Sept 28Only cflinuxfs4 will be available, this is a breaking change for apps not updated to use cflinuxfs4cflinuxfs4cflinuxfs4

GSA.gov

An official website of the U.S. General Services Administration

Looking for U.S. government information and services?
Visit USA.gov