refracta / dcss-server

Containerized DCSS Server
https://crawl.nemelex.cards
2 stars 0 forks source link

Improvement of the container environment #61

Closed refracta closed 3 weeks ago

refracta commented 3 weeks ago

Containers should only serve the environment's role. In the current situation, if a user wants to change how a server operates when setting up a new server, they need to create a new build of the image rather than just changing the environment settings. This complexity and excessive interdependence within the current environment cause this issue.

Additionally, scripts that the user should be able to modify are copied into the image. When the container is stopped(down) and restarted(up), these modifications are reset. While I'am still developing a comprehensive roadmap for how to address this, goal is to redesign the environment so that users can easily modify and use configuration files and entrypoint scripts.

refracta commented 3 weeks ago

Dockerfile - create ssh user, key, .*sh, apt config.py dgmaelaunch.conf dgl banners

refracta commented 3 weeks ago

https://github.com/refracta/dcss-server/tree/test-new-structure

Although still experimental, configuring Docker images this way embeds the corresponding version's original configuration. Users can manage nearly all settings by mounting /home/crawl-dev/dgamelaunch-config. If this folder is empty, it copies the original configuration; if it's not, it uses the existing structure. Users who fork this repository can conveniently set up their environment by pre-configuring their dgamelaunch-config folder and using the same image.