factoriotools / factorio-docker

Factorio headless server in a Docker container
https://hub.docker.com/r/factoriotools/factorio/
MIT License
909 stars 220 forks source link

(WIP) Expose config file locations as env vars #422

Open aSemy opened 2 years ago

aSemy commented 2 years ago

Based on PR #367, fixes #356 - massive thanks to @SQLJames and the previous reviewers. Hopefully this PR can push the work the last inch across the line :)

Work In Progress! I'm not the best at shell scripts, and unfamiliar with Factorio config (I'm just starting out creating a mod), so please check thoroughly! I made this PR as a starting point and haven't tested everything (just that it builds).

TODO

Summary

docker-entrypoint.sh now has five variables with default values

Changes from the original PR

SQLJames commented 2 years ago

@aSemy I was able to solve this with an init container on the helm chart. Please see https://github.com/SQLJames/factorio-server-charts/pull/13