Coder Social home page Coder Social logo

cstrike_docker's Introduction

cstrike_docker

Counter Strike 1.6 server using docker

Probably works best if you clone the git repo anyway and run everything through there. Image only contains basic ubuntu with steamcmd. First start of container will install the Counter Strike Dedicated Server. Done in order to minimize docker image size.

Container start also starts a HLDS CStrike server. based on the default server settings or any changes you may have made in the ./store folder cfgs.

Usage

docker pull anujdatar/cs-16-server

docker run -dit --name <container-name> -v $(pwd)/store:/home/steam/store/ -v $(pwd)/misc:/home/steam/misc -p 27015:27015 -p 27015:27015/udp anujdatar/cs-16-server

If you wish to edit default server settings: - ./store/constants.sh -> starting map, server name, passwords - ./store/cfgs/*.cfg -> banned players, ips, other server settings

Then start docker container

Building image manually

  1. Clone github repository

  2. Build docker image

    docker build -t <image-name/tag> .
  3. Edit Server configs -> the store folder

    • ./store/constants.sh -> starting map, server name, passwords
    • ./store/cfgs/*.cfg -> banned players, ips, other server settings
  4. Run docker container

    docker run -dit --name <container-name> -v $(pwd)/store:/home/steam/store/ -v $(pwd)/misc:/home/steam/misc -p 27015:27015 -p 27015:27015/udp <image-name/tag>
  5. Container boots to bash. you can now run the server management script

    cs_server start
    or
    cs_server stop
    or
    cs_server restart
    or
    cs_server update
  6. Adding more addons or maps -> the misc folder Copy archives of the stuff to ./misc folder which will be a mounted volume in the container. From here you can use the install_addon script to extract and copy addon/mod/map to desired location. You can also just copy files to the misc folder and copy them manually to the desired paths. You can also copy any customs scripts here whatever.

Notes

For full version history check old repository CS_16_docker, now archived. Bloated repository due to many many packing errors.

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.