-
Notifications
You must be signed in to change notification settings - Fork 156
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 Docker support #438
Add Docker support #438
Conversation
…, also update README to suit the changes
Add new dockerfile using ubuntu:focal
Update README.md, add docker-compose example
@RElesgoe Just updated Readme.md and docker-compose.yml, |
… Hub Pull Request Limits Add some git options to decrease the clone time fix git clone directory to pvpgn-server
Some changes were made:
|
When running one of the example commands,
The build errors with:
|
Oh sorry, I forgot to commit some changes. Btw I'm on a Lunar New Year vacation and don't bring any computer with. I will fix this problem as soon as possible |
will not work with depth=1
@RElesgoe the problem is now fixed. |
ARG with_sqlite3=false | ||
ARG with_pgsql=false | ||
ARG with_odbc=false | ||
ARG with_lua=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should lua support enable as default ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my build, enable LUA will cause pvpgn server to crash everytime an user connect Not anymore if you use develop
branch. The crash is not related to Lua since it happens in any build configuration if you build on branch master
Btw LUA is a experimental feature and an average server admin will not gain any benefit from that so I don't think we should enable this by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should lua support enable as default ?
Sorry, for the false claim, server crashing is not related to Lua since it happens on any build configuration if you build this image on branch master
. I've just created a issue for this
I prefer using the official Ubuntu image from the default container repository. If a user is experiencing rate limiting, they should modify the Dockerfile on their machine to avoid rate limiting. After running
I receive the following error:
I receive similar errors when running
I also noticed that one of the commands specifies the After running
I receive the following error:
When checking the logs using
All I get is:
Because |
About changing the base image to official
|
#botdev at Discord - BNETDocs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I run with docker run pvpgn-server:bnetd-mysql I cannot kill the container with ctrl+c. Something catches the signal?
Dockerfile is good, small fix to compose and mostly readme fixes which I documented above. After next iteration I will also retest on Mac and Windows since it should work just fine in theory. Best regards. |
I'm running it as |
…t/var/*, also fix configuration obtaining command.
Thanks! I've resolved all of the issues mentioned. This build is tested on Linux and I'm running it on my server which has approx 200 - 300 unique users daily (most of them play DotA with my hosted ghost++). If this build works on linux then 99% it will run on windows and macos too since docker on those system is running on a VM. If there are errors, most of the time it would be networking misconfiguration. |
Left a couple more comments. Just need to test Windows and we are almost there. |
Finished! |
@aperture147 please check the 4 pending comments above. The mysql config string is the important one, the rest I can close myself. |
But I don't see any new comment :( Resolved all 5 issues above. Am I missing anything? |
My bad, I forgot to actually submit the review. :insert facepalm: |
just resolved your issue above. Please check! |
I had some issues with modern firewalld blocking internal docker container comms but I will patch the readme mysql with that info and fix the language a little bit. All seems to work fine, I made it to the login. |
Things has been made so far:
ubuntu:focal
ubuntu:bionic
docker-compose.yml
filedocker-compose
deployment example added