Sign inSign up

engin33r/cs2djit

By engin33r

•Updated over 6 years ago

A LuaJIT-powered CS2D dedicated server setup with pre-configured LuaRocks

Image
0

316

engin33r/cs2djit repository overview

⁠Supported tags

  • 20200111, 1011, latest

⁠What is CS2D JIT?

CS2D JIT is a tool that replaces CS2D's built-in Lua engine with LuaJIT for faster server performance, external Lua C modules support, and FFI support.

This is experimental technology, and no guarantees are provided for compatibility with existing Lua code or CS2D server stability.

⁠How to use

$ docker run --name cs2djit -v /srv/cs2djit/cs2d:/cs2d -v /srv/cs2djit/luarocks:/root/rocks -p 10001:36963/udp -it -d engin33r/cs2djit:latest

Make sure that the game data bind mount (/srv/cs2djit/cs2d) exists and has game data (including the cs2d_dedicated binary) as required for hosting a Linux dedicated server. The mount for /root/rocks is used to persist installed luarocks rocks between container restarts.

You may replace 10001 with your desired port. Make sure your sv_hostport setting is set to 36963! The port should be adjusted via Docker port binding, not CS2D configuration.

⁠Docker compose

version: '3.1'

services:
  cs2djit:
    image: engin33r/cs2djit:latest
    restart: always
    ports:
      - 10001:36963/udp
    volumes:
      - /srv/cs2djit/cs2d:/cs2d
      - luarocks:/root/rocks

volumes:
  luarocks:

⁠LuaRocks usage

$ docker exec -it cs2djit luarocks <COMMAND>

Replace cs2djit with your container name.

⁠Image Variants

  • cs2djit:latest includes the latest CS2D JIT library for the latest public CS2D version. This is the default tag.
  • cs2djit:<cs2d-version> (e.g. cs2djit:1011) includes the latest CS2D JIT library for the given CS2D version.
  • cs2djit:<cs2djit-version> (e.g. cs2djit:20200111) includes the specified CS2D JIT library version.

⁠License

This Docker image distributes compiled libraries from the CS2D JIT project. The source code for the CS2D JIT library is originally developed by MikuAuahDark⁠ and licensed under the MIT licence.

All parts of this Docker image created by the author(s) are licensed under the MIT licence.

Tag summary

Content type

Image

Digest

Size

122.2 MB

Last updated

over 6 years ago

docker pull engin33r/cs2djit