Ubuntu 22.04 Image#

Available on: Startup Scaleup

The ubuntu2204 image is a customized image based on Ubuntu 22.04 LTS, which has been optimized for CI/CD. It comes with a set of preinstalled languages, databases, and utility tools commonly used for CI/CD workflows. Please note that the image is only available for our newer generation agent type: e2-standard-2 when defining the agent of your pipeline or block.

The ubuntu2204 image is a virtual machine (VM) image. The user in the environment, named semaphore, has full sudo access. The image will be updated bi-weekly, on the first and third Mondays of every month. Updates can be followed on the Semaphore Changelog.

The ubuntu2204 VM uses an APT mirror located in the same data center as Semaphore's build cluster, which means that caching packages will have little effect.

Using the ubuntu2204 image in your agent configuration#

To use the ubuntu2204 image, define it as the os_image of your agent's machine, as shown below:

version: 1.0
name: Ubuntu2204 Based Pipeline

agent:
  machine:
    type: e2-standard-2
    os_image: ubuntu2204

blocks:
  - name: "Unit tests"
    task:
      jobs:
        - name: Tests
          commands:
            - make test

Toolbox#

The ubuntu2204 image comes with two utility tools. One for managing background services and databases, and one for managing language versions.

Version control#

Following version control tools are pre-installed:

  • Git 2.43.0
  • Git LFS (Git Large File Storage) 3.4.1
  • GitHub CLI 2.44.1
  • Mercurial 6.1.1
  • Svn 1.14.1

Browsers and Headless Browser Testing#

  • Firefox 102.11.0 (102, default, esr)
  • Geckodriver 0.33.0
  • Google Chrome 121
  • ChromeDriver 121
  • Xvfb (X Virtual Framebuffer)
  • Phantomjs 2.1.1

Chrome and Firefox both support headless mode. You shouldn't need to do more than install and use the relevant Selenium library for your language. Refer to the documentation of associated libraries when configuring your project.

Docker#

Docker toolset is installed and the following versions are available:

  • Docker 25.0.2
  • Docker-compose 1.29.2 (used as docker-compose --version)
  • Docker-compose 2.24.5 (used as docker compose version)
  • Docker-buildx 0.12.1
  • Docker-machine 0.16.2
  • Dockerize 0.7.0
  • Buildah 1.23.1
  • Podman 3.4.4
  • Skopeo 1.4.1

Cloud CLIs#

  • Aws-cli 2.15.17 (used as aws)
  • Azure-cli 2.57.0
  • Eb-cli 3.20.10
  • Ecs-cli 1.21.0
  • Doctl 1.104.0
  • Gcloud 425.0.0
  • Gke-gcloud-auth-plugin 425.0.0
  • Kubectl 1.29.1
  • Heroku 8.7.1
  • Terraform 1.7.2
  • Helm 3.14.0

Network utilities#

  • Httpie 3.2.2
  • Curl 7.81.0
  • Rsync 3.2.7

Compilers#

  • gcc: 11 (default), 12

Languages#

Erlang and Elixir#

Erlang versions are installed and managed via kerl. Elixir versions are installed with kiex.

  • Erlang: 24.3, 25.0, 25.1, 25.2, 25.3 (default), 26.0, 26.1, 26.2
  • Elixir: 1.9.x, 1.10.x, 1.11.x, 1.12.x, 1.13.x, 1.14.x (1.14.5 as default), 1.15.x, 1.16.x

Additional libraries:

  • Rebar3: 3.22.1

Go#

Versions:

  • 1.10.x
  • 1.11.x
  • 1.12.x
  • 1.13.x
  • 1.14.x
  • 1.15.x
  • 1.16.x
  • 1.17.x
  • 1.18.x
  • 1.19.x
  • 1.20.x
  • 1.21.x (1.21.6 as default)

Java and JVM languages#

  • Java: 11.0.21, 17.0.9 (default)
  • Scala: 3.2.2
  • Leiningen: 2.11.1 (Clojure)
  • Sbt 1.9.8

Additional build tools#

  • Maven: 3.9.6
  • Gradle: 8.3
  • Bazel: 7.0.2

JavaScript via Node.js#

Node.js versions are managed by nvm. You can install any version you need with nvm install [version]. Installed version:

  • v20.11.0 includes npm 10.2.4

Additional tools#

  • Yarn: 1.22.19

PHP#

PHP versions are managed by phpbrew. Available versions:

  • 8.1.20 and above
  • 8.2.x
  • 8.3.x

The default installed PHP version is 8.1.27.

Additional libraries#

PHPUnit: 9.5.28

Python#

Python versions are installed and managed by virtualenv. Installed versions:

  • 3.10.12
  • 3.11.7
  • 3.12.1

Supporting libraries:

  • pypy: 7.3.9
  • pypy3: 7.3.15
  • pip: 24.0
  • venv: 20.25.0

Ruby#

Available versions:

  • 3.0.0 to 3.0.6
  • 3.1.0 to 3.1.4
  • 3.2.0 to 3.2.3
  • 3.3.0
  • jruby-9.4.1.0

The default installed Ruby version is 3.2.3.

Rust#

  • 1.75.0

Installing dependencies with apt package manager#

The Semaphore Ubuntu:22.04 image has most of the popular programming languages, tools and databases preinstalled.

If the dependency you need is not present in the list above, you can install it with the Ubuntu package manager, or using an alternative method such as compiling it from the source or manually downloading binaries.

To install dependecies using the package manager (apt-get) you can use the template command below and add it to your pipeline:

sudo apt-get update
sudo apt-get install -y [your-dependency]

Disabled repositories#

Due to occasional issues with some of the repositories that break the pipeline during apt-get update command, the following sources lists have been moved to /etc/apt/sources.list.d/disabled:

  • azure-cli.list
  • bazel.list
  • devel_kubic_libcontainers_stable.list
  • docker.list
  • github_git-lfs.list
  • git.list
  • google-chrome.list
  • google-cloud-sdk.list
  • gradle.list
  • helm.list
  • ppa_ondrej_php_jammy.list
  • pypy.list
  • python.list
  • yarn.list
  • sbt.list
  • sbt_old.list

If you need any of these before running the apt-get update command, please move them to the /etc/apt/sources.list.d directory.

Example:

sudo mv /etc/apt/sources.list.d/disabled/git.list /etc/apt/sources.list.d/
sudo apt-get update

See Also#