docker-space-engineers-server/README.md

70 lines
2.3 KiB
Markdown
Raw Normal View History

2020-10-21 22:06:30 +00:00
# Space Engineers Server on Linux
This is a docker container suitable for running a Space Engineers server.
There is no public prebuilt container image because of microsoft copyright restrictions.
2015-10-26 10:54:53 +00:00
## Setup
- Create the required directory structure.
```bash
2019-06-19 20:16:53 +00:00
mkdir -p space-engineers/{docker,data,steam}
mkdir -p space-engineers/data/Space\ Engineers/{Mods,Saves}
2015-10-26 10:54:53 +00:00
```
- Clone this repository into the home directory of the new user account.
```bash
2019-06-19 20:16:53 +00:00
git clone https://github.com/ChipWolf/se-server.git space-engineers/docker
2015-10-26 10:54:53 +00:00
```
2019-06-19 20:16:53 +00:00
- Obtain a copy of the most current `DedicatedServer.zip` and place it in `~/games/space-engineers/data`. You may use this method below.
2015-10-26 10:54:53 +00:00
```bash
2019-06-19 20:16:53 +00:00
docker run --rm -it -v $(pwd)/space-engineers/steam:/data wilkesystems/steamcmd
# the following 4 commands are for the steamcmd terminal
login anonymous
force_install_dir /data
app_update 298740 validate
quit
2015-10-26 10:54:53 +00:00
```
2019-06-19 20:16:53 +00:00
- At this stage we need to patch a few .dlls to fix an issue with mods not downloading, thanks to [Thomas\_Jefferson](https://forum.keenswh.com/members/thomas_jefferson.3913080/) from the Keen Software House forum for this one.
2015-10-26 10:59:00 +00:00
2019-06-19 20:16:53 +00:00
![](https://i.cwlf.uk/Jxav4.png)
2015-10-26 10:58:45 +00:00
2019-06-19 20:16:53 +00:00
```
cd space-engineers/steam
zip -r ../data/DedicatedServer.zip
cd ../..
sudo chown -R 256:256 space-engineers
2015-10-26 10:58:45 +00:00
```
2019-06-19 20:16:53 +00:00
- Upload your `SpaceEngineers-Dedicated.cfg` and place it in `~/games/space-engineers/data/Space Engineers`. Use the one in this repository and edit it to your liking if you do not already have one.
2015-10-26 10:54:53 +00:00
2019-06-19 20:16:53 +00:00
- **Build the image!** *(This will take a while)*
2015-10-26 10:54:53 +00:00
```bash
2019-06-19 20:16:53 +00:00
space-engineers/docker/build.sh
2015-10-26 10:54:53 +00:00
```
2020-10-21 22:06:30 +00:00
## Running
2015-10-26 10:54:53 +00:00
```bash
2019-06-19 20:16:53 +00:00
docker run -it -p 27016:27016/udp -v $(pwd)/games/space-engineers/data:/host --rm --name space-engineers saiban/space-engineers
2015-10-26 10:54:53 +00:00
```
2019-06-19 20:16:53 +00:00
![](https://i.cwlf.uk/PPXyG.png)
2015-10-26 10:54:53 +00:00
2019-06-19 20:16:53 +00:00
---
2015-10-26 10:54:53 +00:00
## Additional notes
2020-10-21 22:06:30 +00:00
Running SES this way requires a program called `sigmap`, Space Engineers ignores `SIGTERM` when it is sent by docker to stop the service, `sigmap` catches that signal and forwards a `SIGINT` to Space Engineers.
2015-10-26 10:54:53 +00:00
2015-10-26 11:30:21 +00:00
See [here](https://github.com/marjacob/sigmap "sigmap") for more information.
2015-10-27 11:59:31 +00:00
## Credits
The original `Dockerfile` was written by [webanck](https://github.com/webanck "webanck") and can be found [here](https://github.com/webanck/docker-wine-steam "Steam with Docker").
2019-06-19 20:16:53 +00:00
2020-10-21 22:07:09 +00:00
This repo has been adapted from [marjacob](https://github.com/marjacob "marjacob")'s & [ChipWolf](https://github.com/ChipWolf)'s efforts