From cc23bb396e7adc6ee8bd5464140163924865386d Mon Sep 17 00:00:00 2001 From: keith Date: Wed, 2 May 2018 12:44:34 -0700 Subject: [PATCH 1/2] expose script-output to volume --- 0.16/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/0.16/Dockerfile b/0.16/Dockerfile index 9c7e4f5..4f35dd9 100644 --- a/0.16/Dockerfile +++ b/0.16/Dockerfile @@ -14,7 +14,8 @@ ENV PORT=34197 \ SAVES=/factorio/saves \ CONFIG=/factorio/config \ MODS=/factorio/mods \ - SCENARIOS=/factorio/scenarios + SCENARIOS=/factorio/scenarios \ + SCRIPTOUTPUT=/factorio/script-output RUN mkdir -p /opt /factorio && \ apk add --update --no-cache pwgen && \ @@ -28,6 +29,7 @@ RUN mkdir -p /opt /factorio && \ ln -s $SAVES /opt/factorio/saves && \ ln -s $MODS /opt/factorio/mods && \ ln -s $SCENARIOS /opt/factorio/scenarios && \ + ln -s $SCRIPTOUTPUT /opt/factorio/script-output && \ apk del .build-deps && \ addgroup -g $PGID -S $GROUP && \ adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \ From b94db83033fcf329fe129855c6769fa844e9d547 Mon Sep 17 00:00:00 2001 From: keith Date: Wed, 2 May 2018 12:45:11 -0700 Subject: [PATCH 2/2] setup script-output directory --- 0.16/files/docker-entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/0.16/files/docker-entrypoint.sh b/0.16/files/docker-entrypoint.sh index 43e797a..d517271 100755 --- a/0.16/files/docker-entrypoint.sh +++ b/0.16/files/docker-entrypoint.sh @@ -8,6 +8,7 @@ mkdir -p $SAVES mkdir -p $CONFIG mkdir -p $MODS mkdir -p $SCENARIOS +mkdir -p $SCRIPTOUTPUT if [ ! -f $CONFIG/rconpw ]; then echo $(pwgen 15 1) > $CONFIG/rconpw