From e974ca4498bed32e649bbe4e4ca46b8c67b63fff Mon Sep 17 00:00:00 2001 From: Matthew Faltys Date: Mon, 25 Nov 2019 21:34:09 +0000 Subject: [PATCH] Add nightly build --- config.gcfg | 4 ++-- deps/Dockerfile | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/config.gcfg b/config.gcfg index e0e36ce..4f5a451 100644 --- a/config.gcfg +++ b/config.gcfg @@ -3,8 +3,8 @@ serverdisplay = "unixvoid.com underground nethack server" nethackversion = "3.6.1" hackdir = "savedata/hack" - nhdatlocation = "/usr/lib/games/nethack/nhdat" - recoverbinary = "/usr/lib/games/nethack/recover" + nhdatlocation = "/NetHack/dat/nhdat" + recoverbinary = "/NetHack/util/recover" bootstrapdelay = 1 [redis] diff --git a/deps/Dockerfile b/deps/Dockerfile index d333f4d..2219170 100644 --- a/deps/Dockerfile +++ b/deps/Dockerfile @@ -27,18 +27,19 @@ RUN apt-get clean # TODO # nightly instructions -# git clone https://github.com/NetHack/NetHack.git -# cd NetHack -# sys/unix/setup.sh sys/unix/hints/linux -# make all -# make install -# find /* -name nethack +# +RUN git clone https://github.com/NetHack/NetHack.git +RUN cd NetHack && \ + sys/unix/setup.sh sys/unix/hints/linux && \ + make all +RUN find /* -name nethack +RUN chmod 777 /NetHack/sys/unix/sysconf # make required dirs RUN mkdir -p /redisbackup/ -# update nethack bin location -RUN mv /usr/games/nethack /bin/nethack +## update nethack bin location +RUN cp /NetHack/src/nethack /bin/nethack RUN chmod 777 /bin/nethack RUN mkdir /hack/