-
Notifications
You must be signed in to change notification settings - Fork 162
Add socat to the image #59
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
Comments
Since this isn't necessary for most users of the image, and is trivial to add after the fact, I don't think we'll be adding it. Here are some example FROM haproxy:1.8
RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/* FROM haproxy:1.8-alpine
RUN apk add --no-cache socat Combine that with automated builds (https://docs.docker.com/docker-hub/builds/) and repository links (https://docs.docker.com/docker-hub/builds/#repository-links) and it's reasonably easy to have an up-to-date image built |
What you ask is reasonable, but it doesn't compare to just executing |
We can't possibly please "all users", which is why we target "most" instead (and honestly, we really target "upstream focused experience", so your argument will be a lot more compelling if you can find a link directly from upstream's documentation which explains why While your ask is a modest 300k addition of just Another potential solution you might consider is putting |
The major difference between |
(I'd love a link ❤️) |
Maybe you don't know (or I'm unable to) there's no way to put a socket into a docker volume because HA Proxy fails with |
Actually, this is possible, but we have to use /tmp because no other directory is having the correct rights set at haproxy docker image startup, which is a bit tedious |
@tianon ? |
If you set ( exec 3<> /dev/tcp/localhost/9999 && echo 'help' >&3 && cat <&3 )
( exec 3<> /dev/tcp/localhost/9999 && echo 'show info; show stat' >&3 && cat <&3 )
# or a little differently
{ echo 'echo hello from haproxy' >&3; cat; } 3<>/dev/tcp/localhost/9999 <&3 |
So that we can manage the server with
socat /var/run/haproxy.sock readline
The text was updated successfully, but these errors were encountered: