-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Ssh remote console #388
Ssh remote console #388
Conversation
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.
Looking really good! I'm not sure why I feared it would be a bigger deal than that.
Just to double check, the server stops gracefully still when the container is told to stop? (I should probably sanity test the changes myself but will do that a bit later.)
Let me look at that more closely. I’ve just been noticing that the bedrock container closes relatively quickly like I expect when using |
Before:
After:
|
Thanks for confirming the stop behavior. I forgot that I had entrypoint demoter intercept the term signal and write "stop" to stdin. I'm now thinking that's why I kept thinking demoter and server runner were orthogonal tools not to be used in the same container. Turns out it's a just a little overkill that both do signal conversion and even better demoter intercepts first and avoids the rcon check in server runner. |
Alright, I've closed everything out. Let me know if there's anything else, otherwise I'll be focused on my final changes to wrap this up. |
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.
Latest looks great. Thanks!
Purpose
This enables the work that was started in the mc-server-runner pull request to add a remote SSH console.
itzg/mc-server-runner#56
ENABLE_SSH
settingRCON_PASSWORD
is not set, that it uses a scrambled password to match the docker-minecraft-server behavior.Validation Performed
Built the docker container locally on an ARM64 system (M1 Mac mini with an Ubuntu VM running docker). Started a server with ENABLE_SSH set and the 2222 port exposed. Was able to login from a standard ssh client and issue commands to it. Docker logs were checked and confirmed that the output was sent to both locations and I could audit SSH connections.
Also checked to make sure that the default 'minecraft' password did not work if RCON_PASSWORD is not set.
Checked to ensure that the server still works when ENABLE_SSH is not defined, and logs still work.