-
Notifications
You must be signed in to change notification settings - Fork 102
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
New Dockerfile with user mode #87
Conversation
Docker throws error "Template parsing error: template: :1: unexpected "/" in operand" Solution per this issue: moby/moby#27592
Thanks for working on this. It looks like you've made some big improvements. I have a few questions before this can be merged.
Cheers. |
Hey Beth, thanks for your time & consideration on this!
If people are consuming this package from At the end of the day you are the maintainer and can do what you are comfortable with. If we need to maintain a fork, for internal use, then we will. But we thought we'd try giving back to the community first!
bundle exec passenger-config install-agent && \
bundle exec passenger-config install-standalone-runtime && \
bundle exec passenger-config build-native-support By running
Happy to answer any further questions or help in any way I can. TTFN! |
Thanks for your detailed response @tavogel. I'm going to put this on a branch, and give it a different tag, so we can run the existing one in parallel with yours, without breaking our current users. When we do a major release of the broker (and we've given this image a good testing) then we can merge it in to the main branch. I'm open to using Puma, but have no experience in using it myself. |
We haven't forgotten this, just been crazy busy. |
This is a really nice solution @tavogel I built your dockerfile changes alongside puma and it is currently here https://github.com/YOU54F/pact-standalone-docker-slim/blob/master/pact_broker_puma/Dockerfile it is tiny in comparison to the current pact broker docker image, and gives us multithreading, which as you correctly stated, and enterprise level feature of passenger that current PB docker users don't benefit from. |
@bethesque @YOU54F new PR created for Puma: #90 |
Awesome. We'll probably merge the puma one then, once we've gotten a few eyes on it. Are you running it yourself yet? Nothing like someone actually testing in prod to give confidence about big changes! |
Closed in favour of #90 |
I've come up with an alternate approach to solving the user-mode issue than #84. After getting increasingly frustrated sorting out user mode in the phusion base image, I wrote a new Dockerfile that uses Passenger Standalone from a standard Ubuntu base image. In this case there are a couple of advantages... primarily it's less than half the size (478mb vs 1.07gb), ditches a ton of cruft, and no need for chmod/chgrp/chown shenanigans, or weird initializers. It also logs to stdout rather than a file, so no need for logrotate, and no worries about filling up disk space... just let your container platform handle it.