chaotic-aur / notes

Documentation on how to operate our nodes πŸ“”
4 stars 1 forks source link
chaotic-aur notes

Chaotic-AUR documentation

The packages repo - containing lists of packages to be built by our builders

Our interfere repo

Handling the toolbox

Some examples on how to handle stuff

Administration

Setting up the main node

Deploying new mirrorlist or keyring

cd /srv/http/repos/chaotic-aur
sudo ln -sfT x86_64/chaotic-mirrorlist-20211231-1-any.pkg.tar.zst chaotic-mirrorlist.pkg.tar.zst
sudo ln -sfT x86_64/chaotic-mirrorlist-20211231-1-any.pkg.tar.zst.sig chaotic-mirrorlist.pkg.tar.zst.sig

Resetting the repo

HPC node

srun --cpus-per-task=40 --time=3:00:00 --partition=fast --pty bash -i
cd $(mktemp -d)
cd ~/chaotic/toolbox && git pull --ff-only
chaotic sd; chaotic sp; chaotic si; chaotic lowerstrap
myjobs
# In myjob's output you'll see JOBIDs
cd ~/chaotic/toolbox/slurm-jobs/ufscar-hpc/
tail slurm-${JOBID}.out
scontrol update JobID=562597 StartTime=NOW
cd ~/chaotic/toolbox/slurm-jobs/ufscar-hpc/
scancel ${JOBID}
rm "${JOBID}.out"
ls -1 *.sh
sbatch ${JOB_NAME}.sh
ssh ${CONTROLLER_CN}
~/emergency-cleanup.sh