• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Debian 10 - problem with boost during compilation AND/OR exposing game via Docker

Tasd

New Member
Joined
Jun 2, 2020
Messages
6
Reaction score
1
Hi!

I cloned the repo of TFS and then I wanted to straight run the server via docker, but for some reason I'm uanble to expose those ports


Docker file contains EXPOSE 7171 7172


I added those rules to iptables


sudo iptables -A INPUT -p tcp --dport 7171 --jump ACCEPT

sudo iptables -A INPUT -p tcp --dport 7172 --jump ACCEPT

iptables-save


And then started the server:


docker build -t foo . && docker run -it foo


Step 14/17 : EXPOSE 7171 7172

---> Running in 691hh8099fccf


(...)

Initializing gamestate

Loaded all modules, server starting up...

Warning: The Forgotten Server has been executed as root user, please consider running it as a normal user.

Forgotten Server Online!

I noticed that in docker inspect there's something "weird" like that:

"NetworkSettings":
{
"Bridge": "",
"SandboxID": "8fe4889ff25e9cf8d7734cecdfasf8b9c0fc817284cb0c2fd6ea21b83f25",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"7171/tcp": null,
"7172/tcp": null
},

I tried to also compile it myself, but I'm unable to install boost?

/tfs/src/connection.cpp: In member function ‘void Connection::accept()’:
/tfs/src/connection.cpp:119:81: error: no matching function for call to ‘boost::posix_time::seconds::seconds(Connection::<unnamed enum>)’
readTimer.expires_from_now(boost::posix_time::seconds(Connection::read_timeout));
^


Does anyone have an idea how to solve that? Thanks in advance!
Post automatically merged:

I'm so stupid, sorry, here's solution:

during doceker run I didnt map ports from host to container

docker build -t foo . && docker run -p 7171:7171 -it foo
 
Last edited:
Back
Top