Compare commits

...

15 Commits

Author SHA1 Message Date
5e36f8bad8 update to 0.16.47 2018-05-31 07:47:59 +00:00
d1258008c1 Added catch all to allow custom options for factorio (#169) 2018-05-30 20:37:46 +02:00
275faa1fcc update to 0.16.46 2018-05-29 14:03:01 +00:00
87cf6c051a Fixed wrong checksum 2018-05-23 09:41:09 +02:00
3d8cdfcc1d update to 0.16.45 2018-05-22 20:07:47 +00:00
d3ef74b10d update to 0.16.43 (#162) 2018-05-16 18:03:52 +02:00
b41aad4dc6 update to 0.16.42 (#161) 2018-05-11 18:48:47 +02:00
24ac45dbce Merge pull request #157 from afex/master
Expose script-output to mounted volume
2018-05-04 12:19:56 -07:00
8286ab58ac update to 0.16.41 (#159) 2018-05-03 21:22:40 +02:00
c2d8509aa8 update to 0.16.40 (#158) 2018-05-03 00:53:14 +02:00
b94db83033 setup script-output directory 2018-05-02 12:45:11 -07:00
cc23bb396e expose script-output to volume 2018-05-02 12:44:34 -07:00
1b2fdb298f update to 0.16.39 (#156) 2018-04-30 20:00:30 +02:00
ab277975ae Merge pull request #153 from dtandersen/update-0.16.38
Updated to version 0.16.38
2018-04-26 11:45:23 -07:00
80d8866242 update to 0.16.38 2018-04-26 15:24:39 +00:00
3 changed files with 11 additions and 8 deletions

View File

@ -9,12 +9,13 @@ ARG PGID=845
ENV PORT=34197 \ ENV PORT=34197 \
RCON_PORT=27015 \ RCON_PORT=27015 \
VERSION=0.16.37 \ VERSION=0.16.47 \
SHA1=0e809f5d4c59cfd8f2ead9e6be94f44b1f87f284 \ SHA1=dceff980800cd52d9c0b6b927df085a164bbb3f4 \
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

@ -1,5 +1,4 @@
#!/bin/sh -x #!/bin/sh -x
set -e set -e
id id
@ -8,6 +7,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
@ -44,4 +44,5 @@ exec /opt/factorio/bin/x64/factorio \
--server-banlist $CONFIG/server-banlist.json \ --server-banlist $CONFIG/server-banlist.json \
--rcon-port $RCON_PORT \ --rcon-port $RCON_PORT \
--rcon-password "$(cat $CONFIG/rconpw)" \ --rcon-password "$(cat $CONFIG/rconpw)" \
--server-id /factorio/config/server-id.json --server-id /factorio/config/server-id.json \
$@

View File

@ -1,6 +1,6 @@
# Factorio [![](https://images.microbadger.com/badges/image/dtandersen/factorio.svg)](https://microbadger.com/images/dtandersen/factorio "Get your own image badge on microbadger.com") [![Docker Pulls](https://img.shields.io/docker/pulls/dtandersen/factorio.svg)](https://hub.docker.com/r/dtandersen/factorio/) [![Docker Stars](https://img.shields.io/docker/stars/dtandersen/factorio.svg)](https://hub.docker.com/r/dtandersen/factorio/) # Factorio [![](https://images.microbadger.com/badges/image/dtandersen/factorio.svg)](https://microbadger.com/images/dtandersen/factorio "Get your own image badge on microbadger.com") [![Docker Pulls](https://img.shields.io/docker/pulls/dtandersen/factorio.svg)](https://hub.docker.com/r/dtandersen/factorio/) [![Docker Stars](https://img.shields.io/docker/stars/dtandersen/factorio.svg)](https://hub.docker.com/r/dtandersen/factorio/)
* `0.16.37`, `0.16`, `stable`, `latest` [(0.16/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.16/Dockerfile) * `0.16.47`, `0.16`, `stable`, `latest` [(0.16/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.16/Dockerfile)
* `0.15.40`, `0.15` [(0.15/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.15/Dockerfile) * `0.15.40`, `0.15` [(0.15/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.15/Dockerfile)
* `0.14.23`, `0.14` [(0.14/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.14/Dockerfile) * `0.14.23`, `0.14` [(0.14/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.14/Dockerfile)
* `0.13.20`, `0.13` [(0.13/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.13/Dockerfile) * `0.13.20`, `0.13` [(0.13/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.13/Dockerfile)
@ -39,7 +39,7 @@ sudo docker run -d \
-p 27015:27015/tcp \ -p 27015:27015/tcp \
-v /opt/factorio:/factorio \ -v /opt/factorio:/factorio \
--name factorio \ --name factorio \
--restart=always \ --restart=always \
dtandersen/factorio dtandersen/factorio
``` ```
@ -131,7 +131,7 @@ docker run -d \
## Converting Scenarios to Regular Maps ## Converting Scenarios to Regular Maps
If you would like to export your scenario to a saved map, you can use the example entrypoint similar to the Scenario usag above. Factorio will run once, converting the Scenario to a saved Map in your saves directory. A restart of the docker image using the standard options will then load that map, just as if the scenario were just started by the Scenarios example noted above. If you would like to export your scenario to a saved map, you can use the example entrypoint similar to the Scenario usag above. Factorio will run once, converting the Scenario to a saved Map in your saves directory. A restart of the docker image using the standard options will then load that map, just as if the scenario were just started by the Scenarios example noted above.
``` ```
docker run -d \ docker run -d \