Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
/ bf2-mod-docker Public archive

Simple script to help with creating bf2 mod docker containers

Notifications You must be signed in to change notification settings

senclan/bf2-mod-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BF2 Mod docker builder

This is a simple script to build a docker container for a specific mod.

Prerequisites

This extends the bf2 server docker image. You will need to first build a bf2/server:latest image before you can build this one.

You should also make sure you download a zip of the mods files.

Usage

$ ./build.sh -h
USAGE: ./build.sh [OPTION]...

Options:
  -h        Prints this message
  -s PATH   Path to source file
  -t tag    Tag for docker image
  -k        Keep extracted files directory
              Warning: all files from directory will be included in image

Example

First update the docker file to point to the mod you're installing.

sed -i 's/MOD_FOLDER/MODNAME/' Dockerfile

Replacing MODNAME with the appropriate mod name.

./build.sh -s /path/to/mymod.zip -t bf2/mod/mymod:latest

Reference bf2 server docker for examples of running the docker container.

About

Simple script to help with creating bf2 mod docker containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published