Skip to content

File for creating docker container to run a dedicate megamek server

Notifications You must be signed in to change notification settings

rjhancock/dedicated-megamek-container

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

dedicated-megamek-container

This repo is to aid in setting up and running a dedicate MegaMek server as a container. The Dockerfile is set to automatically download the latest released version.

Build the docker container to run dedicate server

docker build --build-arg MM_VERSION=<version to build> --build-arg SENTRY_ENABLED=<true or false> --tag megamek:<version> .

To build for multiple platforms

docker buildx build --platform=linux/amd64,linux/arm64  --build-arg MM_VERSION=<version to build> --build-arg SENTRY_ENABLED=<true or false> -t tapenvyus/megamek:<version> .

Running the container

We should now have a megamek container built. You can run the container with the following command:

docker run --rm -d -p 2346:2346 megamek:<version>

You should now be able to connect to the above dedicate megamek server on localhost or your LAN IP and port 2346

Sentry Configuration

A point of note, this image is configured to allow the enable or disable of Sentry upon build. The images provided to Docker Hub have Sentry enabled for the MegaMek team to get as much error data as possible. You can disable in your own build by passing false to the above build arg.

About

File for creating docker container to run a dedicate megamek server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%