factoriotools / factorio-docker

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

Expose config file locations as env vars #367

Closed SQLJames closed 2 years ago

SQLJames commented 3 years ago

Fixes #356

In the factorio-server-charts, to allow us to specify the config values we are using configmaps, which creates the json file and mounts it to the proper location, however they are Read only files. This poses an issue when the server-id.json is needed to create a public server because it needs rw operations. I am currently looking into creating a sidecar to copy the files into the proper directory so we can properly rw to the directory.

But in my digging to resolve this issue, this solution did come up as a potential fix, so I had to ask if your project would be open to accepting a pull request that allows users to specify the location of config files as an ENV variable.

SQLJames commented 3 years ago

Fixes #356

SQLJames commented 3 years ago

I am actually not sure why the automated tests are failing, can someone tell me what is wrong? I was able to build these locally without issue.

SuperSandro2000 commented 3 years ago

Because the script is broken and missing a -t.

SuperSandro2000 commented 3 years ago

CI should be fixed on master and because I cannot push to your branch you need to rebase on master.

SuperSandro2000 commented 3 years ago

Also please never merge master in a PR and squash the commits together.

SQLJames commented 3 years ago

Also please never merge master in a PR and squash the commits together.

Sorry this was the problem with rebasing off master, I ran into this issue then my existing pull request was already pointing to master. But yes, I will note that for the future.

proegssilb commented 3 years ago

What's the status of this? It looks like there's a failing check for "stable", but I can't see any logs, and I'm not sure why these changes would fail for one version but not another?

Fank commented 3 years ago

@SQLJames we did a lot of changes and got rid of the version numbers in the folder structure. Could you try to do you changes based on the current master?

SQLJames commented 2 years ago

solved on the helm chart. https://github.com/SQLJames/factorio-server-charts/pull/13