Skip to content

Commit

Permalink
Add Ubuntu 24.04 container
Browse files Browse the repository at this point in the history
Basically copied from Ubuntu 22.04
  • Loading branch information
singiamtel authored and ktf committed Jul 16, 2024
1 parent fd86175 commit 415f648
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
30 changes: 30 additions & 0 deletions ubuntu2404-builder/packer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"_comment": "Ubuntu 24.04 builder X-enabled",
"variables": {
"REPO": "registry.cern.ch/alisw/ubuntu2404-builder",
"TAG": "latest"
},
"builders": [
{
"type": "docker",
"image": "ubuntu:24.04",
"commit": true
}
],
"provisioners": [
{
"type": "shell",
"script": "provision.sh"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
]
]
}
29 changes: 29 additions & 0 deletions ubuntu2404-builder/provision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/bash
set -exo pipefail

# Create users and groups for mesos. -r -U means that the groups created
# automatically for each user will have the same gid as the uid (so group
# mesosalien will have gid 980, and so on).
useradd -rUu 980 mesosalien
useradd -rUu 981 mesosci
useradd -rUu 982 mesosdaq
useradd -rUu 983 mesosuser
useradd -rUu 984 mesostest

export DEBIAN_FRONTEND=noninteractive
apt update -y
apt upgrade -y
apt install -y apt-utils
apt install -y build-essential autoconf automake autopoint bison flex \
gettext gfortran gtk-doc-tools libtool libtool-bin pkg-config \
texinfo libbz2-dev libcurl4-gnutls-dev libfftw3-dev libglfw3-dev \
libglu1-mesa-dev libkmod-dev liblzma-dev libmotif-dev \
libmysqlclient-dev libnanomsg-dev libncurses-dev libpci-dev \
libperl-dev libtbb-dev libxml2-dev linux-headers-generic \
lsb-release swig xorg-dev unzip curl rsync ed git pigz rclone \
environment-modules ruby-full rubygems-integration python3-dev \
python3-venv python3-pip python-is-python3 \
openjdk-8-jdk # for Jenkins

# Don't generate rdoc or ri documentation.
gem install --no-document fpm

0 comments on commit 415f648

Please sign in to comment.