![]() ![]() On June 30, 2014, the multiplayer master server was shut down alongside other GameSpy-powered titles, although it can still be played online throughout fan-created mods with alternative servers. A sequel, Battlefield 3, was released in October 2011. The game takes place in different fronts, as the Middle East and China are being invaded by US and EU forces, and the United States is being invaded by Chinese and MEC forces. The story takes place in the early 21st century during a fictional world war between various power blocs: China, the European Union, the fictional Middle Eastern Coalition (MEC), Russia and the United States. The multiplayer aspect of the game allows players to organize into squads that come under the leadership of a single commander to promote teamwork. Marines, China and the fictional Middle Eastern Coalition. The single-player aspect features missions that involve clashes between U.S. Battlefield 2 is a first-person shooter with some strategy and Tactical Shooter elements. Players fight in a modern battlefield, using modern weapon systems. It was released in June 2005 as the third game in the Battlefield franchise. Make sure Docker is set to use Linux containers.Ĭontributions to new or existing images are welcome if you want them public.Battlefield 2 is a first-person shooter video game developed by Digital Illusions CE and published by Electronic Arts for Microsoft Windows. Then make your changes in Dockerfile, build.sh, setup.sh and run.sh. Developmentįirst set up Docker Desktop on Windows (WSL2).ĭownload the assets (see assets.txt) and put them in the images/*/assets/ folder so you don't need to redownload them on each build. If you are not using a container registry then the images need to be built on the host first. Place the docker-compose.yml on the host and run docker-compose up -d -remove-orphans to create the containers. "/data/bf2/bf2-docker-2/volume:/volume " ports: ENV_BF2CCD_PASSWORD=bf2ccdpw123 volumes: "29900:29900/udp " bf2-docker-2-service:Ĭontainer_name: bf2-docker-2 image: nihlen/bf2-docker/bf2hub-pb-mm-bf2cc restart: on-failure environment: "/data/bf2/bf2-docker-1/volume:/volume " ports: Not practical since you can't play online but it can be used as a base.Ĭontainer_name: bf2-docker-1 image: nihlen/bf2-docker/bf2hub-pb-mm restart: on-failure environment: The basic image to run a Battlefield 2 server. For this use case I prefer using Docker Compose, an example is listed further down. Running multiple servers on the same host can be done by changing the ports in the environment variables and the mapped host port. ![]() To use these images on a remote host like a VPS you can either use the snippets below to build and run or you can build the images locally and then push them to a container registry like Docker Hub or Azure Container Registry (public or private). If you want to have full visibility of the server files you can also map the /home/bf2/srv folder of the container. Persisted files like settings, logs and demos are put in the /volume directory in the container using symbolic links and should be mapped to a host directory. Initial settings or passwords can be set using environment variables. To create your own, you can copy one of the existing images to use as a base, and then place your custom files in the assets/bf2 folder to overwrite any existing files. Prerequisitesĭifferent server variations are placed in the images folder. ![]() Uses multi-stage builds to keep the image sizes down. The base image is debian:stretch-slim and was tested on Linux containers in Windows 10 WSL2 and Debian 11. Dockerized Battlefield 2 server based on insanity54/bf42-dock. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |