-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
960956e
commit 6b2548f
Showing
5 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
assets/*.run | ||
assets/*.tar.gz | ||
assets/bf1942 | ||
bf1942 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,25 @@ FROM ubuntu:14.04 | |
|
||
MAINTAINER Chris Grimmett <[email protected]> | ||
|
||
# open ports for BF server | ||
EXPOSE 14567/udp # game traffic | ||
EXPOSE 3117/udp # server browser client request (LAN) | ||
EXPOSE 22000/udp # server browser response (LAN) | ||
|
||
# add server assets to container | ||
ADD ./assets /srv/assets | ||
|
||
# satisfy some deps | ||
RUN apt-get update && apt-get -y install wget expect | ||
# satisfy setup script and bf1942 dependencies | ||
RUN apt-get update && \ | ||
apt-get -y install wget expect libc6-i386 lib32ncurses5 libc6-dev-i386 | ||
|
||
# setup battlefield server package | ||
# * downloads needed bf server files | ||
# * extracts 1.6 files | ||
# * patches to 1.61 | ||
RUN bash -x /srv/assets/setup.sh | ||
|
||
# open ports for BF server | ||
EXPOSE 14567 | ||
|
||
# run battlefield server | ||
# RUN bash -x /srv/assets/bf1942/start.sh #dont do this here | ||
# set default command for running this container (run bf server) | ||
CMD /srv/start | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters