-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
feat: initial docker support #42
Conversation
We want to give people the option to choose their own icons. So compiling with Pumpkin's icon data is not an option |
Well in that case we can't have a default icon. I am not suggesting to hardcode it, but we can't both have a default loaded dynamically from fs, and be able to compile to a standalone binary. We could do it, and force you to mount an icon through docker, but that's stupid. That also won't work with the Cargo.toml env var |
So im not very fimiliar with docker, Why it isn't possible or so easy to just use the icon file directly? |
It's not a docker limitation, we totally could include the icon, but:
Again, neither of these are limitations of Docker. I could set the I would suggest either including the icon.png in the binary, whilst still letting users set their own. |
Your right, I made the icon optional so you can start the server with only the executable |
It now loads successfully, however now the console is being spammed by the following log:
|
Does it spamm?. Or only says when sending something in the terminal? |
Spam, many each ms |
Can you may apply this patch and test ? |
|
Your .patch file didn't work, perhaps CRLF/LF? Well I manually did the change and it worked :) |
Great, So whats needs to be fixed next? |
The biggest problem now is termination not working, for some reason. This leads to the docker container being slow to stop (10s timeout) |
It suspect this is caused by running pumpkin with PID 1, which can't terminate like normal. You have to install a special CTRL+C handler, similar to what is used for graceful shutdown. See https://robertying.com/post/sigterm-docker/ |
Okay, Whats next ? |
I've decided to post-pone GitHub actions to publish, since we aren't making releases. I'll try to get it working on alpine, since it has a smaller footprint. If that doesn't work, we're ready to merge :) |
Looks good. I just wonder if it makes sense to may use |
Thank you @Erb3 |
Adds support for docker
I've decided that GitHub actions can be done later. Since we aren't making releases yet, it's hard to publish docker images.