Skip to content

Commit

Permalink
Update judgehost and apt repo to jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenweyns committed Sep 15, 2023
1 parent 45250ef commit bc956ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/judgehost/add_repositories.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apt-get update
apt-get install software-properties-common gnupg

echo "deb [trusted=yes] https://sysopspackages.icpc.global/apt focal main" >> /etc/apt/sources.list
echo "deb [trusted=yes] https://sysopspackages.icpc.global/apt/jammy jammy main" >> /etc/apt/sources.list
echo 'Acquire::https::sysopspackages.icpc.global::Verify-Peer "false";
Acquire::https::sysopspackages.icpc.global::Verify-Host "false";' >> /etc/apt/apt.conf.d/80trust-baylor-mirror

Expand Down
2 changes: 1 addition & 1 deletion docker/judgehost/chroot-and-tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
sed -i.bak '/# Upgrade the system, and install\/remove packages as desired/i mkdir \"\$CHROOTDIR\/scripts\/" && cp \/scripts\/add_repositories.sh \"\$CHROOTDIR\/scripts\/" && chmod -R 755 \"\$CHROOTDIR\/scripts\/" && in_chroot \"\/scripts\/add_repositories.sh\"\n' /opt/domjudge/judgehost/bin/dj_make_chroot

# Usage: https://github.com/DOMjudge/domjudge/blob/main/misc-tools/dj_make_chroot.in#L58-L87
/opt/domjudge/judgehost/bin/dj_make_chroot -i openjdk-17-jre-headless,openjdk-17-jdk-headless,pypy3,icpc-kotlinc
/opt/domjudge/judgehost/bin/dj_make_chroot -R jammy -i openjdk-17-jre-headless,openjdk-17-jdk-headless,pypy3,icpc-kotlinc

cd /
echo "[..] Compressing chroot"
Expand Down

0 comments on commit bc956ad

Please sign in to comment.