compujuckel / AssettoServer

Custom Assetto Corsa server with focus on freeroam
https://assettoserver.org
GNU Affero General Public License v3.0
287 stars 67 forks source link

Docker Support #28

Closed razaqq closed 2 years ago

razaqq commented 2 years ago

Adds docker support. Uses CI building to push to dockerhub (compujuckel/assettoserver) (you would have to set repo secrets DOCKERHUB_USERNAME and DOCKERHUB_TOKEN). If you want to use github's ghcr.io instead for example then just changing the one CI step is enough.

Image is alpine based (~100 MB final size) and build in two stages using buildx for multiarch support

ShabanTSU commented 2 years ago

Pretty sweet upgrade. Might be able to use docker-compose to allow binding of different configuration files when batch launching containers. Just an idea.

KptnKMan commented 2 years ago

Please I'm really hoping this can get looked at and merged. I've been watching this PR for 6 months, I'm happy to test.

compujuckel commented 2 years ago

@KptnKMan @ShabanTSU I've published a test image now: https://hub.docker.com/repository/docker/compujuckel/assettoserver

It's built from this branch: https://github.com/compujuckel/AssettoServer/tree/razaqq-docker with some improvements to this PR, for example the required Steam libraries are preinstalled so that UseSteamAuth will just work.

Your configs etc. have to be mounted at /data (so that server_cfg.ini should be at /data/cfg/server_cfg.ini)

Please let me know if it works.