The Ubuntu 22.04 (Jammy Jellyfish) Build Environment

What This Guide Covers #

This guide provides an overview of the packages, tools and settings available in the Jammy Jellyfish environment.

Using Ubuntu 22.04 (Jammy Jellyfish) #

To route your builds to Ubuntu 22.04 LTS, Jammy, add the following to your .travis.yml:

dist: jammy

Differences from the previous release images #

Travis CI Ubuntu 22.04, Jammy, includes the following changes and improvements:

Third party apt-repositories removed #

While third party apt-repositories are used during the image provisioning, they are all removed from the build image. This has two benefits; a) reduced risk of unrelated interference and b) faster apt-get updates.

To specify a third party apt-repository, you can add the source with the apt addon and specify the packages. For example:

dist: jammy
      - sourceline: 'ppa:chris-lea/redis-server'
    - redis-tools
    - redis-server

If you depend on these repositories in your build, you can use the following source line to get them back:

package source
docker deb $(lsb_release -cs) stable
google-chrome-stable deb stable main
git-ppa ppa:git-core/ppa
haskell ppa:hvr/ghc
pollinate ppa:pollinate/ppa
redis ppa:chris-lea/redis-server

Services disabled by default #

On the Ubuntu 22.04 based environment, to speed up boot time and improve performance we’ve disabled all services by default. Add any services that you want to start to your .travis.yml:

  - mysql
  - redis

Environment common to all Ubuntu 22.04 images #

The following versions of Docker, version control software and compilers are present on all Ubuntu 22.04 builds, along with more language specific software described in more detail in each language section.

All preinstalled software not provided by distro is installed from an official release – either a prebuilt binary if available, or a source release built with default options. For preinstalled language interpreters, a standard version manager like rvm is used if available for the language.

Version control #

package version
git 2.36.1
git-lfs 3.0.2
hg 5.3
svn 1.14.1

Compilers and Build toolchain #

package version
clang 7.0.0
llvm 14.0.0
cmake 3.16.8
gcc 11.2.0
ccache 4.5.1
shellcheck 0.7.2
shfmt 3.2.1

Docker #

  • Docker 20.10.12 is installed.
  • docker-compose 1.29.2 is also available.

Ruby support #

  • Pre-installed Rubies: 3.0.4, 3.1.2.
  • The default ruby is 3.1.2.
  • Other ruby versions can be installed during build time.

Python support #

  • Supported Python version is: 3.7.7 or higher as 2.7 has been sunsetted.
  • Python 3.10.5 will be used by default when no language version is explicitly set.
  • The following Python versions are preinstalled:
alias version
3.7 3.7.7
3.8 3.8.3
3.9 3.9.13
3.10 3.10.5

JavaScript and Node.js support #

  • For builds specifying language: node_js, nvm is automatically updated to the latest version at build time. For other builds, the stable version at image build time has been selected, which is 0.39.1.
  • The following NodeJS versions are preinstalled: 14.18.1, 16.13.0 and 17.1.0.

Go support #

  • Pre-installed Go: 1.18.3.

  • Other Go versions can be installed during build time by specifying the language versions with the go:-key.

JVM (Clojure, Groovy, Java, Scala) support #

  • Pre-installed JVMs: openjdk11, and openjdk17 on x86, default is openjdk11.

  • Other JDKs, including Oracle’s, can be acquired if available by specifying jdk.

  • The following table summarizes the Pre-installed JVM tooling versions:

package version
gradle 5.1.1
maven 3.6.3
groovy 2.4.21

Perl support #

  • Default version on Jammy is 5.34.0
  • Supported versions 5.33 can be installed by using the perl:-key.

PHP support #

  • For dynamic runtime selection, phpenv is available.
  • The following PHP versions are preinstalled:
alias version
8.1 8.1.2

Databases and services #

The following services and databases are preinstalled but but do not run by default. To use one in your build, add it to the services key in your travis.yml :

service version
mysql 8.0.29
redis 6.0.6
postgresql 14.3

Other Ubuntu Linux Build Environments #

You can have a look at the Ubuntu Linux overview page for the different Ubuntu Linux build environments you can use.