Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 22 additions & 18 deletions archlinux20250601-builder/packer.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
{
"_comment": "Arch Linux builder X-enabled",
"variables": {
"REPO": "registry.cern.ch/alisw/archlinux20250601-builder",
"TAG": "latest"
},
"builders": [
{
"type": "docker",
"commit": true,
"image": "archlinux:base-devel",
"commit": true
}
],
"provisioners": [
{
"type": "shell",
"script": "provision.sh"
"type": "docker"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
"tags": [
"{{user `TAG`}}"
],
"type": "docker-tag"
},
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
"inline": [
"echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"
],
"type": "shell-local"
}

]
]
],
"provisioners": [
{
"script": "provision.sh",
"type": "shell"
}
],
"variables": {
"REPO": "registry.cern.ch/alisw/archlinux20250601-builder",
"TAG": "latest"
}
}

57 changes: 31 additions & 26 deletions arm64-builder/packer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
{
"_comment": "ARM64 Docker image",
"variables": {
"centos_major": "6",
"project": "alisw"
},
"builders": [
{
"type": "docker",
"commit": true,
"image": "centos:centos{{user `centos_major`}}",
"commit": true
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"curl -O http://davidlt.web.cern.ch/davidlt/vault/proot/qemu-aarch64",
"curl -O http://eulisse.web.cern.ch/eulisse/centos-7.2.1511-aarch64-rootfs.tgz",
"curl -O http://davidlt.web.cern.ch/davidlt/vault/proot/proot",
"tar xzvf centos-7.2.1511-aarch64-rootfs.tgz",
"rm -fr centos-7.2.1511-aarch64-rootfs.tar*",
"chmod +x /qemu-aarch64",
"mkdir -p /cvmfs /build",
"chmod +x /proot"
]
"type": "docker"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `project`}}/arm64-builder",
"tag": "latest"
"tags": [
"latest"
],
"type": "docker-tag"
},
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
"inline": [
"echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"
],
"type": "shell-local"
}
]
]
],
"provisioners": [
{
"inline": [
"curl -O http://davidlt.web.cern.ch/davidlt/vault/proot/qemu-aarch64",
"curl -O http://eulisse.web.cern.ch/eulisse/centos-7.2.1511-aarch64-rootfs.tgz",
"curl -O http://davidlt.web.cern.ch/davidlt/vault/proot/proot",
"tar xzvf centos-7.2.1511-aarch64-rootfs.tgz",
"rm -fr centos-7.2.1511-aarch64-rootfs.tar*",
"chmod +x /qemu-aarch64",
"mkdir -p /cvmfs /build",
"chmod +x /proot"
],
"type": "shell"
}
],
"variables": {
"centos_major": "6",
"project": "alisw"
}
}

46 changes: 25 additions & 21 deletions centos7-alicerpms/packer.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
{
"_comment": "CentOS 7 with ALICE RPMs repo",
"variables": {
"DOCKER_HUB_REPO": "alisw"
},
"builders": [
{
"type": "docker",
"commit": true,
"image": "centos:centos7",
"commit": true
"type": "docker"
}
],
"post-processors": [
[
{
"repository": "{{user `DOCKER_HUB_REPO`}}/centos7",
"tags": [
"latest"
],
"type": "docker-tag"
},
{
"inline": [
"echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"
],
"type": "shell-local"
}
]
],
"provisioners": [
{
"type": "shell",
"inline": [
"curl -L https://cafiles.cern.ch/cafiles/certificates/CERN%20Grid%20Certification%20Authority.crt > /etc/pki/ca-trust/source/anchors/CERN_Grid_CA.pem",
"update-ca-trust enable",
"update-ca-trust",
"printf \"[alisw-el7]\\nname=ALICE Software - EL7\\nbaseurl=https://ali-ci.cern.ch/repo/RPMS/el7.x86_64/\\nenabled=1\\ngpgcheck=0\\n\" > /etc/yum.repos.d/alisw-el7.repo",
"echo diskspacecheck=0 >> /etc/yum.conf"
]
],
"type": "shell"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `DOCKER_HUB_REPO`}}/centos7",
"tag": "latest"
},
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
}

]
]
"variables": {
"DOCKER_HUB_REPO": "alisw"
}
}

50 changes: 27 additions & 23 deletions cs8-builder/packer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,46 @@
{
"_comment": "CentOS Stream 8 builder X-enabled",
"variables": {
"REPO": "registry.cern.ch/alisw/cs8-builder",
"TAG": "latest",
"GIT_VERSION": "2.32.0"
},
"builders": [
{
"type": "docker",
"image": "quay.io/centos/centos:stream8",
"commit": true,
"changes": [
"ENTRYPOINT [\"\"]",
"CMD [\"/bin/bash\"]"
]
}
],
"provisioners": [
{
"type": "shell",
"environment_vars": [
"GIT_VERSION={{user `GIT_VERSION`}}"
],
"script": "provision.sh"
"commit": true,
"image": "quay.io/centos/centos:stream8",
"type": "docker"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `REPO`}}",
"tag": "{{user `TAG`}}"
"tags": [
"{{user `TAG`}}"
],
"type": "docker-tag"
},
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
"inline": [
"echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"
],
"type": "shell-local"
}

]
]
],
"provisioners": [
{
"environment_vars": [
"GIT_VERSION={{user `GIT_VERSION`}}"
],
"script": "provision.sh",
"type": "shell"
}
],
"variables": {
"GIT_VERSION": "2.32.0",
"REPO": "registry.cern.ch/alisw/cs8-builder",
"TAG": "latest"
}
}

61 changes: 33 additions & 28 deletions curator/packer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,49 @@
{
"_comment": "Build a Mesos slave image",
"variables": {
"centos_major": "7",
"centos_minor": "2",
"mesos_version": "0.28.2",
"DOCKER_HUB_REPO": "alisw"
},
"builders": [
{
"type": "docker",
"commit": true,
"image": "alisw/mesos-slave:{{user `mesos_version`}}",
"commit": true
}
],
"provisioners": [
{
"type": "file",
"source": "curator.repo",
"destination": "/etc/yum.repos.d/curator.repo"
},
{
"type": "shell",
"inline": [
"rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch",
"yum install -y python-elasticsearch-curator python-setuptools",
"yum clean all -y"]
"type": "docker"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "{{user `DOCKER_HUB_REPO`}}/curator",
"tag": "latest"
"tags": [
"latest"
],
"type": "docker-tag"
},
{
"type": "shell-local",
"inline": ["echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"]
"inline": [
"echo 'The image was built successfully. To push the image to the registry, you can run: docker push {{user `REPO`}}:{{user `TAG`}}'"
],
"type": "shell-local"
}

]
]
],
"provisioners": [
{
"destination": "/etc/yum.repos.d/curator.repo",
"source": "curator.repo",
"type": "file"
},
{
"inline": [
"rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch",
"yum install -y python-elasticsearch-curator python-setuptools",
"yum clean all -y"
],
"type": "shell"
}
],
"variables": {
"DOCKER_HUB_REPO": "alisw",
"centos_major": "7",
"centos_minor": "2",
"mesos_version": "0.28.2"
}
}

Loading