Merge pull request #157 from afex/master

Expose script-output to mounted volume
This commit is contained in:
David Andersen 2018-05-04 12:19:56 -07:00 committed by GitHub
commit 24ac45dbce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,8 @@ ENV PORT=34197 \
SAVES=/factorio/saves \ SAVES=/factorio/saves \
CONFIG=/factorio/config \ CONFIG=/factorio/config \
MODS=/factorio/mods \ MODS=/factorio/mods \
SCENARIOS=/factorio/scenarios SCENARIOS=/factorio/scenarios \
SCRIPTOUTPUT=/factorio/script-output
RUN mkdir -p /opt /factorio && \ RUN mkdir -p /opt /factorio && \
apk add --update --no-cache pwgen && \ apk add --update --no-cache pwgen && \
@ -28,6 +29,7 @@ RUN mkdir -p /opt /factorio && \
ln -s $SAVES /opt/factorio/saves && \ ln -s $SAVES /opt/factorio/saves && \
ln -s $MODS /opt/factorio/mods && \ ln -s $MODS /opt/factorio/mods && \
ln -s $SCENARIOS /opt/factorio/scenarios && \ ln -s $SCENARIOS /opt/factorio/scenarios && \
ln -s $SCRIPTOUTPUT /opt/factorio/script-output && \
apk del .build-deps && \ apk del .build-deps && \
addgroup -g $PGID -S $GROUP && \ addgroup -g $PGID -S $GROUP && \
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \ adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \

View File

@ -8,6 +8,7 @@ mkdir -p $SAVES
mkdir -p $CONFIG mkdir -p $CONFIG
mkdir -p $MODS mkdir -p $MODS
mkdir -p $SCENARIOS mkdir -p $SCENARIOS
mkdir -p $SCRIPTOUTPUT
if [ ! -f $CONFIG/rconpw ]; then if [ ! -f $CONFIG/rconpw ]; then
echo $(pwgen 15 1) > $CONFIG/rconpw echo $(pwgen 15 1) > $CONFIG/rconpw