Nordugrid ARC nightly build repo setup for ARC tutorial

If you are using one of the test-infrastructures set up in connection to the tutorial, you can follow these steps in this document to set up the nightly repo.

If you are using some other infrastructure, please go to the official nightly repo page for instructions.

Enable ARC7 nightly builds for almalinux (rocky)

Setup a CRON job (e.g. /etc/cron.daily/update-arc-nightly-time.sh) to fetch the latest nightlies date:

cat << EOF > /etc/cron.daily/update-arc-nightly-time.sh
#!/bin/bash
curl -s http://builds.nordugrid.org/nightlies/nordugrid-arc/next/ | sed -n 's/^.*<a.*>\(.*\)\/<\/a>.*$/\1/p' | sort  | tail -1 > /etc/yum/vars/arcnightly
EOF

Run the CRON script once manually* to have the arcnightly variable initialized. Also, make sure the script has executable permissions:

sudo /bin/bash /etc/cron.daily/update-arc-nightly-time.sh
sudo chmod +x /etc/cron.daily/update-arc-nightly-time.sh

To add the nightlies repository to your RHEL-based system, create a /etc/yum.repos.d/nordugrid-nightly.repo with the following content:

cat << EOF > /etc/yum.repos.d/nordugrid-nightly.repo
[nordugrid-nightly]
name=Nordugrid ARC Next Nightly Builds - \$basearch
baseurl=http://builds.nordugrid.org/nightlies/nordugrid-arc/next/\$arcnightly/rocky/9/\$basearch
enabled=1
gpgcheck=0
EOF

Enable powertools/crb for dependencies

For RHEL8 flavour

sudo dnf config-manager --set-enabled powertools

For RHEL9 flavour:

sudo dnf config-manager --set-enabled crb