Code Monkey home page Code Monkey logo

csgo-server-sourcemod-docker's Introduction

csgo-server-sourcemod-docker

What is Counter-Strike: Global Offensive?

Counter-Strike: Global Offensive (CS:GO) is an online first-person shooter developed by Hidden Path Entertainment and Valve Corporation. It is the fourth game in the main Counter-Strike franchise.

SourceMod

This Docker image uses SourceMod.

How to use this image

Running CSGO Dedicated Server

  1. Create a Steam account token here: http://steamcommunity.com/dev/managegameservers.

  2. Run the container:

    $ docker run -d -P -e STEAM_GAME_SERVER_TOKEN=1234567890 brandonstevens/csgo-server-sourcemod

Specifying a SourceMod Admin Config

$ docker run -d -P -e STEAM_GAME_SERVER_TOKEN=1234567890 -v /home/ubuntu/admins.cfg:/home/daemon/csgo/server/csgo/addons/sourcemod/configs/admins.cfg brandonstevens/csgo-server-sourcemod

Load a Specific Plugin

$ docker run -d -P -e STEAM_GAME_SERVER_TOKEN=1234567890 -v /home/ubuntu/admins.cfg:/home/daemon/csgo/server/csgo/addons/sourcemod/configs/admins.cfg -v /home/ubuntu/warmod.smx:/home/daemon/csgo/server/csgo/addons/sourcemod/plugins/warmod.smx brandonstevens/csgo-server-sourcemod

Environment Variables

The CSGO Dedicated Server image that the SourceMod builds on uses several environment variables which are easy to miss. Please see https://github.com/brandonstevens/csgo-server-sourcemod-docker for more information on the environment variables.

How to extend this image

If you would like to include specific SourceMod plugins, you can create a simple Dockerfile that downloads and extracts the plugins. Note, any files added to the image (e.g. plugins, config files) should be added by the daemon user. The last step in the image should be changing back to the root user.

FROM brandonstevens/csgo-server-sourcemod

ENV DEATHMATCH_VERSION v2.0.4d

ENV GAME_TYPE 1

ENV GAME_MODE 2

ENV MAPGROUP mp_active

ENV MAP de_dust2

USER daemon

RUN curl -L https://github.com/Maxximou5/csgo-deathmatch/releases/download/$DEATHMATCH_VERSION/deathmatch.zip -o /tmp/deathmatch.zip && \
    unzip -uo /tmp/deathmatch.zip -d /home/daemon/csgo/server/csgo/addons/sourcemod && \
    rm /tmp/deathmatch.zip

USER root

csgo-server-sourcemod-docker's People

Watchers

 avatar  avatar

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.