Skip to content

Commit 941e25c

Browse files
authored
Temporarily disable auto-pause with graalvm images (#3893)
1 parent 621c673 commit 941e25c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

build/ol/install-packages.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,16 @@ fi
6464
# Clean up DNF when done
6565
dnf clean all
6666

67-
# Download and install patched knockd
68-
curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET.tar.gz
69-
tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
70-
ln -s /usr/local/sbin/knockd /usr/sbin/knockd
71-
ls -l /usr/local/sbin/knockd
72-
setcap cap_net_raw=ep /usr/local/sbin/knockd
67+
cat <<EOF > /usr/local/sbin/knockd
68+
#!/bin/sh
69+
70+
echo "Auto-pause (using knockd) is currently unavailable on graalvm image variants"
71+
echo "Consider using a different image variant https://docker-minecraft-server.readthedocs.io/en/latest/versions/java/"
72+
echo "or mc-router's auto scale up/down feature https://github.com/itzg/mc-router#docker-auto-scale-updown"
73+
exit 2
74+
EOF
75+
chmod 755 /usr/local/sbin/knockd
76+
# TODO restore retrieval from https://github.com/Metalcape/knock when tar's "Cannot open: Invalid argument" is solved
7377

7478
# Set git credentials globally
7579
cat <<EOF >> /etc/gitconfig

0 commit comments

Comments
 (0)