Matthew Faltys
5 years ago
7 changed files with 122 additions and 17 deletions
@ -0,0 +1,24 @@
|
||||
FROM debian |
||||
|
||||
# install needed packages |
||||
RUN apt-get update && \ |
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ |
||||
ttyrec \ |
||||
nethack-console \ |
||||
redis-server \ |
||||
vim |
||||
|
||||
# make required dirs |
||||
RUN mkdir -p /redisbackup/ |
||||
|
||||
# update nethack bin location |
||||
RUN mv /usr/games/nethack /bin/nethack |
||||
|
||||
# copy in files |
||||
COPY config.gcfg / |
||||
COPY nethack-launcher / |
||||
COPY reclist /bin/ |
||||
COPY redis.conf / |
||||
COPY run.sh / |
||||
|
||||
CMD ["/run.sh"] |
@ -0,0 +1,4 @@
|
||||
daemonize yes |
||||
dbfilename dump.rdb |
||||
dir /redisbackup/ |
||||
save 30 1 |
@ -0,0 +1,4 @@
|
||||
#!/bin/bash |
||||
|
||||
# start redis server |
||||
redis-server /redis.conf | sed "s/^/[redis] /" |
@ -0,0 +1,15 @@
|
||||
[nethacklauncher] |
||||
loglevel = "debug" |
||||
serverdisplay = "unixvoid.com underground nethack server" |
||||
nethackversion = "3.6.0" |
||||
inprogressdir = "savedata/dgldir/inprogress-nh343" |
||||
userdir = "savedata/dgldir/userdata" |
||||
hackdir = "/hack" |
||||
nhdatlocation = "/usr/lib/games/nethack/nhdat" |
||||
recordfilelocation = "/hack/record" |
||||
reclistlocation = "/bin/reclist" |
||||
bootstrapdelay = 1 |
||||
|
||||
[redis] |
||||
host = "localhost:6379" |
||||
password = "" |
Loading…
Reference in new issue