Skip to content

Commit 78ef940

Browse files
committed
Initial attempt at Alma9 for ARM
1 parent 4086f7c commit 78ef940

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[alice-system-deps]
2+
name=ALICE System Dependencies - EL9
3+
baseurl=https://s3.cern.ch/swift/v1/alibuild-repo/RPMS/o2-full-deps_el9.aarch64/
4+
enabled=0
5+
gpgcheck=0

slc9-arm-builder/packer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"_comment": "Alma 9 builder",
3+
"variables": {
4+
"REPO": "registry.cern.ch/alisw/slc9-arm-builder",
5+
"TAG": "latest"
6+
},
7+
"builders": [
8+
{
9+
"type": "docker",
10+
"image": "gitlab-registry.cern.ch/linuxsupport/alma9-base",
11+
"commit": true,
12+
"changes": [
13+
"ENTRYPOINT [\"\"]",
14+
"CMD [\"/bin/bash\"]"
15+
]
16+
}
17+
],
18+
"provisioners": [
19+
{
20+
"type": "file",
21+
"source": "alice-system-deps.repo",
22+
"destination": "/etc/yum.repos.d/alice-system-deps.repo"
23+
},
24+
{
25+
"type": "shell",
26+
"script": "provision.sh"
27+
}
28+
],
29+
"post-processors": [
30+
[
31+
{
32+
"type": "docker-tag",
33+
"repository": "{{user `REPO`}}",
34+
"tag": "{{user `TAG`}}"
35+
},
36+
"docker-push"
37+
]
38+
]
39+
}

slc9-arm-builder/provision.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh -ex
2+
3+
useradd -rmUu 980 mesosalien
4+
useradd -rmUu 981 mesosci
5+
useradd -rmUu 982 mesosdaq
6+
useradd -rmUu 983 mesosuser
7+
useradd -rmUu 984 mesostest
8+
9+
wipednf () {
10+
rpmdb --rebuilddb
11+
dnf clean all
12+
rm -rf /var/cache/yum
13+
}
14+
15+
wipednf
16+
17+
dnf install -y epel-release dnf-plugins-core
18+
19+
# Formerly "powertools"; contains some dev tools we need.
20+
# See also: https://wiki.almalinux.org/repos/AlmaLinux.html
21+
dnf config-manager --set-enabled crb
22+
23+
dnf update -y
24+
dnf groups install -y 'Development Tools'
25+
# python3-{pip,setuptools} and s3cmd needed for Jenkins builds.
26+
dnf install -y alice-o2-full-deps python3-pip python3-setuptools s3cmd
27+
28+
wipednf

0 commit comments

Comments
 (0)