Giter Site home page Giter Site logo

martinsam16 / cstrike Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 455.97 MB

Counter-Strike 1.6 Dedicated Server

Dockerfile 0.07% Shell 0.85% Pawn 39.52% C++ 7.95% SourcePawn 12.23% PHP 0.90% Smarty 0.03% Scala 0.02% HTML 5.75% SuperCollider 2.34% HCL 0.14% ReScript 30.20%
docker docker-compose terraform azure counter-strike hlds half-life

cstrike's Introduction

Counter Strike 1.6 ๐ŸŽฎ

Docker image size

Pass the environment variables

Environment variable Default value
SERVER_NAME Counter-Strike 1.6 Server
START_MAP de_dust2
MAXPLAYERS 32
START_MONEY 800
BUY_TIME 0.25
FRIENDLY_FIRE 1
MAP_AUTOKICK 0
ROUNDTIME 3
TIMELIMIT 15
WINLIMIT 5
MAP_VOTE_RATIO 0.6
MAP_FREEZETIME 3
ADMIN_STEAM
MAP_AUTOTEAMBALANCE 0
MAP_MAXROUNDS 0
USE_VOTEMAP
RCON_PASSWORD
SERVER_PASSWORD

Terraform

cd terraform/*provider*
terraform init
terraform plan
terraform apply #type 'yes'
terraform destroy #kill type 'yes'

Docker

docker build . -t counter-strike
docker run -d --name counter-strike counter-strike

or

docker run -d -p 26900:26900/udp -p 27020:27020/udp -p 27015:27015/udp -p 27015:27015 -e ADMIN_STEAM=0:1:1234566 --name counter-strike malditoidealismo/counter-strike:latest

Docker compose

docker-compose build
docker-compose up -d
docker-compose down #kill

Modify to your liking

(Re) Build the image and run it (or upload to cloud registry)

Attributions

This project is based on counter-strike-docker, developed by Artem Panchenko.

Changes from original project

  • Steamcmd download and update error solution: local files.
  • Extract names from maps and configure automatically.
  • Terraformed.
  • Docker compose.
  • Added new maps.
  • Added new parameters in run script.

cstrike's People

Contributors

martinsam16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.