-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dockerfile & docker-compose #49
base: master
Are you sure you want to change the base?
Conversation
Thanks ! Concerning the issues you listed:
|
Thanks for your feedback.
|
Given your explanations, I think the problem is just due to the exposed port (port on the host interface, reachable from Internet) being different from the port on which the spring server binary is listening (port in the docker container). I don't think it has anything to do with the IP addresses actually. The listening port for the spring server can be configured in SPADS using the port hosting setting. This setting is used both to indicate which port the spring server binary must listen on and which port the clients must connect to (by sending the appropriate "port" parameter in the OPENBATTLE Spring lobby command). The problem, when using docker, is that these 2 ports can be different... One way to deal with the problem would be to force the internal port to be mapped to the same external port if possible. Another way, if the external port can be known in advance, would be to make a SPADS plugin which would allow configuring the spring binary to listen on one port and publish a different port on Spring lobby server... |
I added support for fully automatic/unattended install in spadsInstaller.pl version 0.23 (only in unstable SPADS release for now), check this for more information. |
Here is a dockerfile i thought mught be worth sharing.
You can setup a account on hub.docker.com to build it on each commit.
Users then would be able to copy/adapt the provided docker-compose.yml and deploy a spads service in no time.
There are some issue though: