GithubHelp home page GithubHelp logo

iamtakingiteasy / se-torchapi-ds-docker Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 4.0 39 KB

Space Engineers TorchAPI dedicated server docker image

Dockerfile 38.17% Shell 61.83%
space-engineers dedicated-server dockerization torch-api

se-torchapi-ds-docker's Introduction

Docker Pulls

Abstract

A wine64 / archlinux-based dockerization of TorchAPI Space Engineers dedicated server.

Base image with required system and .net packages is extracted to https://github.com/iamtakingiteasy/se-torchapi-ds-base-docker repository to reduce build times

It uses win64 wineprefix with all required .net 4.6.1 packages installed with winetricks.

Sadly, as usual with windows software, this one is heavily tied to GUI.

Even with nogui=true setting / -nogui flag torchserver still tries to create (possibly invisible) windows and fails if executed in true headless environment.

To counter that to some extent, xvfb and x11vnc is used. Openbox is added to allow window manipulation.

Example usage

docker run -v /home/data/your/server/data:/home/user/data -p 0.0.0.0:27016:27016/udp -p 127.0.0.1:5900:5900 -p 127.0.0.1:8080:8080 iamtakingiteasy/setorchapids:latest

Entrypoint checks if /home/user/data directory is empty, and if it is -- copies torch distribution to it before starting the server.

Yoy may also check out example docker-compose.yaml

Customization

env variable default substitution
VNC_OPTIONS -nevershared -forever x11vnc $VNC_OPTIONS -auth /home/user/.Xauthority -display :99.0 &
XVFB_OPTIONS -s '-screen 0 1280x720x24' xvfb-run $XVFB_OPTIONS -n 99 -l -f /home/user/.Xauthority -- wine64 Torch.Server.exe $@ &

CMD of container is added to Torch.Server.exe invocation.

Network

port description
5900/tcp VNC port
8080/tcp Torch web console port
27016/udp SE server port

Persistency

volume description
/home/user/data TorchAPI server root directory, including torchserver itself, steamclient and all instances

se-torchapi-ds-docker's People

Contributors

iamtakingiteasy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

se-torchapi-ds-docker's Issues

Crash

VNC GUI reports "A program on your system has crashed, but WineDbg was unable to attach to the process to obtain a backtrace"

In the docker output is:
wine: Unhandled page fault on read access to 0000000000000008 at address 00007FE04F6FBBD7 (thread 0019), starting debugger...

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.