Compare commits

...

25 Commits

Author SHA1 Message Date
94f127dea9 updated readme for 0.12.33 2016-05-04 17:18:56 -07:00
4d43c3aabf Merge remote-tracking branch 'remotes/zopanix/master' into 0.12.33
# Conflicts:
#	Dockerfile
#	README.md
2016-05-04 17:18:04 -07:00
ec17a32638 updated readme for 0.12.32 2016-04-29 15:56:19 -07:00
15da4f79f5 updated version and sha1 for 0.12.32 2016-04-29 15:51:47 -07:00
68e8a5f25c Merge branch 'master' of https://github.com/zopanix/docker_factorio_server into dt_0.12.31 2016-04-29 15:48:27 -07:00
1d3fc75d20 updated imagelayers.io badge url 2016-04-26 15:05:59 -07:00
a4a482ee91 updated dockerfile links 2016-04-26 15:01:32 -07:00
eafe7c08be Merge branch '0.12.31_update' into dt_develop
# Conflicts:
#	Dockerfile
#	README.md
2016-04-26 14:44:56 -07:00
3e9f74eaac Merge branch 'alpine' 2016-04-14 23:04:50 -07:00
14bbd68a3b how to see logs 2016-04-14 22:54:17 -07:00
d4052bc790 formatted the word dockerfile as code 2016-04-14 22:50:29 -07:00
2fc2b7656d reformat docs 2016-04-14 22:48:52 -07:00
199f6c7f59 added versions to top 2016-04-14 22:45:25 -07:00
d614babc54 added fancy bagde 2016-04-14 22:41:33 -07:00
257e1751c2 added description of factorio 2016-04-14 22:37:25 -07:00
d089b02941 point to dtandersen repo 2016-04-14 22:23:36 -07:00
6fe77c30da Merge branch 'readme' 2016-04-14 22:14:12 -07:00
a97763a0e1 re-enabled SSL security 2016-04-14 22:06:32 -07:00
602881a0d9 added CA root; removed domain cert 2016-04-14 22:05:59 -07:00
b56ab27e52 factorio ssl cert 2016-04-14 17:55:35 -07:00
5edbcd9055 try using alpine images 2016-04-14 17:55:24 -07:00
059a77574e Corrected a typo.
Merge branch 'autopausetypo2'

# Conflicts:
#	Dockerfile
2016-04-14 16:08:37 -07:00
fb0d7d955b Moved factorio link to the top 2016-04-14 16:02:34 -07:00
a34b260d15 combined ENVs to reduce layer count 2016-04-14 15:20:14 -07:00
5d5cb71a90 verify SHA1 checksum 2016-04-14 15:03:35 -07:00

147
README.md
View File

@ -1,102 +1,151 @@
Factorio # Supported tags and respective `Dockerfile` links
=====
Factorio Server in docker
Current Version * `0.12.33`, `latest` [(0.12.33/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/dt_0.12.33/Dockerfile)
----- * `0.12.32` [(0.12.32/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/dt_0.12.32/Dockerfile)
0.12.33 * `0.12.31` [(0.12.31/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/dt_0.12.31/Dockerfile)
### What's new ? * `0.12.30` [(0.12.30/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/dt_0.12.30/Dockerfile)
#### Factorio
See [factorio's site](http://www.factorio.com)
#### Docker image
Next feature come from dtandersen's fork:
* Image based on alpine (makes the image more lightweight)
* SSL verification when downloading game
Versions [![](https://imagelayers.io/badge/dtandersen/factorio:latest.svg)](https://imagelayers.io/?images=dtandersen/factorio:latest 'Get your own badge on imagelayers.io')
-----
I'm keeping the image up to date. If you need to use an older version, checkout out the different [tags](https://hub.docker.com/r/zopanix/factorio/tags/). # What is Factorio?
[Factorio](https://www.factorio.com) is a game in which you build and maintain factories.
You will be mining resources, researching technologies, building infrastructure, automating production and fighting enemies. Use your imagination to design your factory, combine simple elements into ingenious structures, apply management skills to keep it working and finally protect it from the creatures who don't really like you.
The game is very stable and optimized for building massive factories. You can create your own maps, write mods in Lua or play with friends via Multiplayer.
NOTE: This is only the server. The game is available on [Steam](http://store.steampowered.com/app/427520/).
# Features
* Automatically takes latest save or autosave when restarting the container.
* Volumes for saves and mods
* Set autosave interval and number of saves.
* Enable/disable the no-auto-pause option.
* Enable/disable console commands in game.
* Based on Alpine Linux.
# How to use this image?
## Quick Start
This runs factorio with default settings, and your save will be kept:
How to use ?
-----
### I just want to play !
This runs factorio with default settings, and your save will be kept :
``` ```
docker run -d \ docker run -d \
-v [PATH]:/opt/factorio/saves \ -v [PATH]:/opt/factorio/saves \
-p [PORT]:34197/udp \ -p [PORT]:34197/udp \
zopanix/factorio dtandersen/factorio
``` ```
* Where [PATH] is a folder where you'll put your saves, if there already is a save in it with the string "save", that one will be taken by default, otherwize, a new one will be made. * Where [PATH] is a folder where you'll put your saves, if there already is a save in it with the string "save", that one will be taken by default, otherwize, a new one will be made.
* Where [PORT] is the port number you choose, if you're going to launch it on your local machine, don't use the port 34197, take another one at random. * Where [PORT] is the port number you choose, if you're going to launch it on your local machine, don't use the port 34197, take another one at random.
### Advanced usage ## Advanced usage
#### Without map persistence
``` ### Without map persistence
docker run -d \
-p [PORT]:34197/udp \
zopanix/factorio
```
This will generate a new random map with default settings. This will generate a new random map with default settings.
#### With map persistence
``` ```
docker run -d \ docker run -d \
-v [PATH]:/opt/factorio/saves \
-p [PORT]:34197/udp \ -p [PORT]:34197/udp \
zopanix/factorio dtandersen/factorio
``` ```
### With map persistence
This will generate a new random map with default settings and save it onto the volume. This will generate a new random map with default settings and save it onto the volume.
Replace [PATH] with a path to a folder on the host where the map will be saved. Replace [PATH] with a path to a folder on the host where the map will be saved.
#### With existing map
``` ```
docker run -d \ docker run -d \
-v [PATH]:/opt/factorio/saves \ -v [PATH]:/opt/factorio/saves \
-p [PORT]:34197/udp \ -p [PORT]:34197/udp \
zopanix/factorio dtandersen/factorio
``` ```
### With existing map
It's the same as above, it takes the last modified file which contains the word save in the filename as current save when booting the server. This allows when upgrading the container to take the last save, you don't have to rename the last autosave as save.zip It's the same as above, it takes the last modified file which contains the word save in the filename as current save when booting the server. This allows when upgrading the container to take the last save, you don't have to rename the last autosave as save.zip
#### Autosave interval
You can set the autosave interval. By default it is set at 2 minutes bud you can change it by launching the container with the "FACTORIO_AUTOSAVE_INTERVAL" variable to whatever suits you best. ```
docker run -d \
-v [PATH]:/opt/factorio/saves \
-p [PORT]:34197/udp \
dtandersen/factorio
```
### Autosave interval
You can set the autosave interval. By default it is set at 2 minutes bud you can change it by launching the container with the `FACTORIO_AUTOSAVE_INTERVAL` variable to whatever suits you best.
``` ```
docker run -d \ docker run -d \
--env FACTORIO_AUTOSAVE_INTERVAL=[NUMBER] \ --env FACTORIO_AUTOSAVE_INTERVAL=[NUMBER] \
-p [PORT]:34197/udp \ -p [PORT]:34197/udp \
zopanix/factorio dtandersen/factorio
``` ```
Where [NUMBER] is the number of minutes between autosaves. Where [NUMBER] is the number of minutes between autosaves.
#### Autosave slots
You can set the number of autosave slots. By default it is set at 3 slots bud you can change it by launching the container with the "FACTORIO_AUTOSAVE_SLOTS" variable to whatever suits you best. ### Autosave slots
You can set the number of autosave slots. By default it is set at 3 slots bud you can change it by launching the container with the `FACTORIO_AUTOSAVE_SLOTS` variable to whatever suits you best.
``` ```
docker run -d \ docker run -d \
--env FACTORIO_AUTOSAVE_SLOTS=[NUMBER] \ --env FACTORIO_AUTOSAVE_SLOTS=[NUMBER] \
-p [PORT]:34197/udp \ -p [PORT]:34197/udp \
zopanix/factorio dtandersen/factorio
``` ```
Where [NUMBER] is the number of autosave slots. Where [NUMBER] is the number of autosave slots.
#### Mounting mod volume
### Mounting mod volume
As everybody knows about factorio is you can add mods to it. Now you can also do it in this docker image by mounting a volume. As everybody knows about factorio is you can add mods to it. Now you can also do it in this docker image by mounting a volume.
``` ```
docker run -d \ docker run -d \
-v [PATH]:/opt/factorio/mods \ -v [PATH]:/opt/factorio/mods \
-p [PORT]:34197/udp \ -p [PORT]:34197/udp \
zopanix/factorio dtandersen/factorio
``` ```
Where [PATH] is the path to the folder with your mods. Where [PATH] is the path to the folder with your mods.
#### Allowing in-game commands
I've always disabled in-game commands because I think it is like cheating, however, you can enable them by setting the the "FACTORIO_DISSALOW_COMMANDS" variable to "false". ### Allowing in-game commands
I've always disabled in-game commands because I think it is like cheating, however, you can enable them by setting the the `FACTORIO_DISSALOW_COMMANDS` variable to "false".
``` ```
docker run -d \ docker run -d \
--env FACTORIO_DISSALOW_COMMANDS=false \ --env FACTORIO_DISSALOW_COMMANDS=false \
-p [PORT]:34197/udp \ -p [PORT]:34197/udp \
zopanix/factorio dtandersen/factorio
``` ```
#### Activating no-auto-pause in the game when no one is on the server
I do not recommend this feature, bud it can make the game more difficult if you're up for a challenge :-). Just set the "FACTORIO_NO_AUTO_PAUSE" variable to "true". ### Activating no-auto-pause in the game when no one is on the server
I do not recommend this feature, bud it can make the game more difficult if you're up for a challenge :-). Just set the `FACTORIO_NO_AUTO_PAUSE` variable to "true".
``` ```
docker run -d \ docker run -d \
--env FACTORIO_NO_AUTO_PAUSE=true \ --env FACTORIO_NO_AUTO_PAUSE=true \
-p [PORT]:34197/udp \ -p [PORT]:34197/udp \
zopanix/factorio dtandersen/factorio
``` ```
### ToDo's
* Add cutom savename for people with a lot of saves ### Logs
Sometimes it's useful to see the logs of a running container:
```
docker exec -it [CONTAINER] tail -f /opt/factorio/factorio-current.log
```
# Credits
Based on [Zopanix' Factorio Server](https://github.com/zopanix/docker_factorio_server).