-
Notifications
You must be signed in to change notification settings - Fork 31
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
Inconvenient directory structure for Docker use #193
Comments
For what I can look you will need to change: https://github.com/Byte-Nova/Rimworld-Together/blob/development/Source/Server/Core/Main.cs#L63 . But your statement is not really correct:
Check the PR #195 if it solve your main issue related to volumes and docker |
I did see that PR but I didn't see where it addressed my concerns about the directory structure. Cirune also seemed to confirm that it doesn't change the paths when I asked about it. I could be misunderstanding. Does changing the workdir in the dockerfile change where the save data and config folders are created? |
Like Cirune said it already in separated folder. Look at the current Dockerfile, the binary is called from |
Thanks for explaining. I wasn't sure how the executable was choosing the directory and didn't realize it was as easy as changing the working directory but it makes sense in retrospect. I believe it would be enough to change the paths here: e.g. "Saves" > "Data/Saves" I may try my hand at doing so in a pull request. I am satisfied and this issue can be closed unless you'd rather keep it open. Thanks! |
I agree if for this part the objective is only to refactor the file structure. Plus on that aspect I will leave the owner veto about the folder about changing the file structure 👼. |
You're right, the |
Currently there are 11 folders in the same directory as the executable. This is nice for simplicity but it makes using the server as a docker container more difficult. Typically I would expose a volume for saved data and usually also configuration files so they are accessible on the host and persist even when the container is destroyed and recreated. This prevents you from losing your data when the image changes after an update.
If I persist the entire rimworld-together folder then the executable will also persist and will not update when the image is updated to a new version. Because of this I have to persist each folder separately. I would like to see the folders organized into categories based on function. One for data which will always need to be persisted. One for configs which would need to persist if the admin wants to change them and doesn't want to build his own container. And one for logs which could optionally be persisted.
Here's an illustration for reference.
Cheers!
Proposed task list:
The text was updated successfully, but these errors were encountered: