Skip to content

Commit

Permalink
Initial attempt at Alma9 for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed May 6, 2024
1 parent 4086f7c commit 249b262
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
5 changes: 5 additions & 0 deletions slc9-arm-builder/alice-system-deps.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[alice-system-deps]
name=ALICE System Dependencies - EL9
baseurl=https://s3.cern.ch/swift/v1/alibuild-repo/RPMS/o2-full-deps_el9.aarch64/
enabled=0
gpgcheck=0
39 changes: 39 additions & 0 deletions slc9-arm-builder/packer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"_comment": "Alma 9 builder",
"variables": {
"REPO": "registry.cern.ch/alisw/slc9-arm-builder",
"TAG": "latest"
},
"builders": [
{
"type": "docker",
"image": "gitlab-registry.cern.ch/linuxsupport/alma9-base",
"commit": true,
"changes": [
"ENTRYPOINT [\"\"]",
"CMD [\"/bin/bash\"]"
]
}
],
"provisioners": [
{
"type": "file",
"source": "alice-system-deps.repo",
"destination": "/etc/yum.repos.d/alice-system-deps.repo"
},
{
"type": "shell",
"script": "provision.sh"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
},
"docker-push"
]
]
}
28 changes: 28 additions & 0 deletions slc9-arm-builder/provision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh -ex

useradd -rmUu 980 mesosalien
useradd -rmUu 981 mesosci
useradd -rmUu 982 mesosdaq
useradd -rmUu 983 mesosuser
useradd -rmUu 984 mesostest

wipednf () {
rpmdb --rebuilddb
dnf clean all
rm -rf /var/cache/yum
}

wipednf

dnf install -y epel-release dnf-plugins-core

# Formerly "powertools"; contains some dev tools we need.
# See also: https://wiki.almalinux.org/repos/AlmaLinux.html
dnf config-manager --set-enabled crb

dnf update -y
dnf groups install -y 'Development Tools'
# python3-{pip,setuptools} and s3cmd needed for Jenkins builds.
dnf install -y alice-o2-full-deps python3-pip python3-setuptools s3cmd

wipednf

0 comments on commit 249b262

Please sign in to comment.