Giter Site home page Giter Site logo

Comments (3)

tianon avatar tianon commented on May 30, 2024 3

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 Dockerfiles to install socat in the haproxy image:

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 FROM this one with socat built-in. 👍

from haproxy.

rodlogic avatar rodlogic commented on May 30, 2024

What you ask is reasonable, but it doesn't compare to just executing docker run -ti haproxy:1.8-alpine and getting all the functionality. Instead of focusing on 'most users', why don't you focus on 'all users'? After all it is a 300K (?) addition to the image. My 2 cents.

from haproxy.

tianon avatar tianon commented on May 30, 2024

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 socat is necessary for proper or even suggested use of HAProxy).

While your ask is a modest 300k addition of just socat, the next fellow will see that we include socat, and want curl, and the next may be even more esoteric wanting mysql-client or something. What we end up with is a slippery slope that ends up including the full kitchen sink, and we get to maintain that long-term.

Another potential solution you might consider is putting /var/run in your image on a volume (-v /var/run) so that you can trivially do --volumes-from in a separate container which includes socat to interact with it (that's how my personal tianon/network-toolbox image is intended to be used, although it's normally via --network foo or --network container:bar). In fact, if my network-toolbox image doesn't already include socat, I'd be hip to doing so (since it's explicitly intended to be that "kitchen sink included" style image).

from haproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.