Git Product home page Git Product logo

call-of-duty-classic-docker's Introduction

Call of Duty 'Classic' Docker Image!

Here you get a Docker Image for the Game Call of Duty & Call of Duty: United Offensive. You can host easily multiple gameserver instances with one gamedir!

Docker Cloud Build Status Docker Pulls

๐Ÿ“ฆ What you get

  • Well documented Game Configurations
  • Multiple Versions (Classic CoD: 1.4, 1.5, 1.5b | CoD:UO 1.51)
  • Multiple Servers with one install
  • Download latest Serverfiles
  • Also "cracked" binaries so any user can join!

๐Ÿš€ How to start

For a fast start simply

docker create \
  --name codclassic \
  -p 28960:28960 \
  -p 28960:28960/udp \
  -v <your/path/to/game/>:/gameserver \
  -v <your/path/to/game/>:/config \
  -e COD_VERSION="1_5b" \
  -e COD_GAME="main" \
  -e STARTUP="+set fs_homepath config/default +set dedicated 2 +exec dedicated.cfg" \
keinnerd/codclassic:latest

๐Ÿ”ง Envs

Env ASCII HTML
COD_VERSION CoD: 1_4 or 1_5 or 1_5b / UO: 1_51 For cracked add a _cracked behind the Version
COD_GAME main or uo main = Call of Duty / uo = Call of Duty: UO
STARTUP "+set fs_homepath config/default +set dedicated 2 +exec dedicated.cfg" Adjust your Start command (fs_basepath is hardcoded to /gameserver)

๐Ÿ“ Multiple Servers

If you want to host multiple servers, create a new container then create inside your config folder different dirs and change +set fs_homepath config/default to config/server1 the next to config/server2. Create Configs inside the dirs and spin up the container.

โ”€โ”€ /config
 โ”œโ”€โ”€> server1 (e.g call of duty)
 โ”œโ”€โ”€โ”€โ”€โ”€โ”€> dedicated.cfg
 โ”œโ”€โ”€โ”€โ”€โ”€โ”€> punkbuster.cfg
 โ”œโ”€โ”€> server2 (e.g call of duty UO)
 โ”œโ”€โ”€โ”€โ”€โ”€โ”€> dedicateduo.cfg
 โ”œโ”€โ”€โ”€โ”€โ”€โ”€> punkbuster.cfg
 โ”œโ”€โ”€> server3 (e.g AWEMod)
 โ”œโ”€โ”€โ”€โ”€โ”€โ”€> dedicated.cfg & aweconfig.cfg
 โ””โ”€โ”€โ”€โ”€โ”€โ”€> punkbuster.cfg

To enable comment the Punkbuster vars in your dedicated(uo).cfg out!

Open needed Ports in your firewall! Default Ports: 20500/udp 20510/udp 28960/tcp 28960/udp

๐Ÿ‘พ Mods

If you want to play a Modification you need to upload your mod in the gamedir and adjust some ENV's

  • Change COD_GAME to mod
  • Change STARTUP to cod{uo}_lnxded_VERSION +set fs_basepath /gameserver +set fs_game YOURMOD +set fs_homepath config/YOURMOD/ +set dedicated 2 +exec YOURMODCONFIG.cfg

๐Ÿ“ ToDo

  • nothing today

๐Ÿ‘ Contribution

Feel free to fork and make pull requests. This are my first attempts with creating docker images so please give me feedback.

call-of-duty-classic-docker's People

Contributors

fistwho avatar

Stargazers

 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.