Git Product home page Git Product logo

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

Call of Duty 4 Docker Image!

Here you get a Docker Image for the Game Call of Duty 4. 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 (1.7, 1.8x)
  • Multiple Server with one install
  • Download latest Serverfiles
  • COD4x Support included
  • Easy Mod Support

๐Ÿš€ How to start

For a fast start simply

    docker create \
      --name cod4docker \
      -p 28960:28960 \
      -p 28960:28960/udp \
      -v <your/path/to/game/>:/gameserver \
      -v <your/path/to/game/>:/config \
      -e COD_VERSION="1_7" \
      -e COD_GAME="nomod" \
      -e STARTUP="+set fs_homepath config/default +set fs_savepath config/default +set dedicated 2 +set net_ip 0.0.0.0 +set net_port "28960" +exec server.cfg +map_rotate" \
    keinnerd/cod4docker:latest

Then Check the server.cfg in the config/default dir.

๐Ÿ”ง Envs

Env Options Description
COD_VERSION Basic: 1_7 or 1_8 Choose your Game Version
COD_GAME nomod or mod nomod = Call of Duty 4 Vanilla / mod = Call of Duty 4 with Mod Options
STARTUP "+set fs_homepath config/default +set fs_savepath config/default +set dedicated 2 +set net_ip 0.0.0.0 +set net_port "28960" +exec server.cfg +map_rotate" Adjust your Start command (fs_basepath is hardcoded to /gameserver)

Hint: if you use the mod ENV you must adjust the Startup Comand and have to add +set fs_game mods/yourmod

๐Ÿ“ 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/server2 the next to config/server3. Create Configs or copy the config from default Server inside the dirs and spin up the container.

โ”€โ”€ /config
 โ”œโ”€โ”€> server1 (e.g call of duty 4 ranked)
 โ”œโ”€โ”€โ”€โ”€โ”€โ”€> ranked/server.cfg
 โ”œโ”€โ”€> server2 (e.g call of duty 4 unranked)
 โ”œโ”€โ”€โ”€โ”€โ”€โ”€> unranked/server.cfg
 โ”œโ”€โ”€> server3 (e.g Modded Server)
 โ””โ”€โ”€โ”€โ”€โ”€โ”€> yourmod/server.cfg & yourmod/mod.cfg or mod.cfg

Open needed Ports in your firewall! Default Ports: 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 COD_VERSION to your needed Version
  • Change STARTUP to +set fs_game mods/YOURMOD +set fs_homepath config/YOURMOD/ +set dedicated 2 +set net_ip 0.0.0.0 +set net_port "28960" +exec YOURMOD.cfg +map_rotate

๐Ÿ“ 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-4-docker's People

Contributors

fistwho 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.