-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any official docker image released? #53
Comments
No, as the README state, that is relatively advanced setup, so you're mostly on your own on that one. I also have no desire to maintain an official image for the time being. Also, note that distributing a docker image would not be allowed to contain Factorio itself, so that would be of limited interest I think. That being said, if someone is willing to contribute a clean Dockerfile, that might be an option (not sure - it depends what it looks like I guess). |
It might be a good idea to check the latest version & download regularly with https://wiki.factorio.com/Download_API, instead of containing Factorio itself inside the docker image. |
I did create one for myself https://github.com/martydingo/factorio-mapshot-docker & https://hub.docker.com/r/martydingo/mapshot I run it with Kubernetes, however usage should be similar. |
I run it with two containers in a single deployment, you can achieve this with docker-compose also. - image: martydingo/mapshot:latest
imagePullPolicy: Always
name: mapshot-renderer
env:
- name: FACTORIO_USERNAME
value: "username"
- name: FACTORIO_TOKEN
value: "token"
- name: FACTORIO_SAVE
value: "/opt/factorio/saves/rail-age.factorio.dingo.nexus.zip"
- name: MAPSHOT_AREA
value: "_all_"
# - name: MAPSHOT_FACTORIO_BINARY_PATH
# value: "/mapshot/factorio/bin/x64/factorio"
# - name: MAPSHOT_FACTORIO_DATA_DIRECTORY
# value: "/mapshot/factorio"
- name: MAPSHOT_JPEG_QUALITY
value: "95"
- name: MAPSHOT_MINIMUM_JPEG_QUALITY
value: "95"
# - name: MAPSHOT_MAXIMUM_TILES
# value: ""
- name: MAPSHOT_MINIMUM_TILES
value: "64"
- name: MAPSHOT_MODE
value: "render"
# - name: MAPSHOT_ROOT_DIRECTORY
# value: "/mapshot"
- name: MAPSHOT_SURFACES_TO_RENDER
value: "_all_"
# - name: MAPSHOT_VERBOSE_FACTORIO_LOGGING
# value: ""
- name: MAPSHOT_VERBOSE_MAPSHOT_LOG_LEVEL_INT
value: "9"
# - name: MAPSHOT_WORKING_DIRECTORY
# value: "/mapshot/factorio"
- name: MAPSHOT_INTERVAL
value: "600"
volumeMounts:
- mountPath: /opt/factorio
name: factorio-mapshot-rail-age-factorio-dingo-nexus
readOnly: true
- mountPath: /mapshot
name: mapshot-mapshot-rail-age-factorio-dingo-nexus
- image: martydingo/mapshot:latest
imagePullPolicy: Always
name: mapshot-server
env:
# - name: MAPSHOT_FACTORIO_BINARY_PATH
# value: "/mapshot/factorio/bin/x64/factorio"
# - name: MAPSHOT_FACTORIO_DATA_DIRECTORY
# value: "/mapshot/factorio"
- name: MAPSHOT_MODE
value: "serve"
# - name: MAPSHOT_ROOT_DIRECTORY
# value: "/mapshot"
- name: MAPSHOT_VERBOSE_MAPSHOT_LOG_LEVEL_INT
value: "9"
# - name: MAPSHOT_WORKING_DIRECTORY
# value: "/mapshot/factorio" |
@martydingo It looks fantastic! But there are a few points I’d like to confirm:
|
|
I have no immediate plans to provide a Dockerfile, so at least give some pointer as others have managed to do so.
@changchiyou @Palats I've documented this, ironically I never saw that mention. https://github.com/martydingo/factorio-mapshot-docker |
@martydingo That is great, thanks! (added a more explicit link to your repo in README here) |
I saw this
mapshot/README.md
Line 96 in 7ec20a6
but I can't find any guide for docker user, have I missed something? (#26 seems like a uncomplete task)
The text was updated successfully, but these errors were encountered: