GithubHelp home page GithubHelp logo

Comments (14)

leseb avatar leseb commented on July 17, 2024

@Ulexus Can you test this? https://registry.hub.docker.com/u/ceph/base-rgw/ with #18

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

@leseb There's no need for another base, since apache et al are installed specifically for the purpose of radosgw and are not really a reusable component. Just put the apache installation (apt-get install ...) into the radosgw Dockerfile. (I don't see the base-rgw on the Github side, so I can't see what's in it)

Also, I don't think you should have to run with --net=host. The issue with the MON and OSD containers and --net=host (if I recall correctly) is that ceph is really picky about the IP addresses. radosgw isn't much more than a client proxy, as I understand it, so it shouldn't matter if it runs on a different IP... is that assumption correct?

from ceph-container.

leseb avatar leseb commented on July 17, 2024

Ok I'll simply re-use base and install the necessary component for radosgw.
Correct the issue is with the MONs where they can't work behind a NAT.
Ending up with these kind of messages:

.connect claims to be [::1]:6804/1031425 not [::1]:6804/31537 - wrong node!

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

base: Yeah, that's exactly what I was meaning

nat: Okay, that makes sense. --net=host it is.

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

Oh... I see. Yeah, you're installing all the stuff at runtime instead of buildtime. Put all the installation in the Dockerfile, not the execution script.

from ceph-container.

leseb avatar leseb commented on July 17, 2024

Ack.

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

Also, you'll probably want to run apache directly (or with supervised or similar) rather than the default Debian init scripts. You don't want to run the whole init system for just Apache and radosgw

from ceph-container.

leseb avatar leseb commented on July 17, 2024

Ok will run apache from the cli, not really familiar with supervised.
Pushing a version in a couple of minutes.

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

Sorry, misnamed it: supervisord

I've never actually used it myself, as I try to avoid containers running multiple daemons. In this case, though, it doesn't really make sense to split up apache and radosgw. Many people in the Docker world use it. monit is also reasonably common, and I have used it.

In either case, the idea is that the execution blocks on a single command. Otherwise, you have to run one process in the background, and if it dies, you (and Docker) won't know about it. Hence, you want to use some sort of light-weight process manager when running multiple daemons inside a Docker container.

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

I should also mention that monit has the advantage of being in the Debian (and Ubuntu) package system already, so it is just an apt-get away.

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

Also, I'll have some time next week to tidy it up (wrap it in a monitor, rearrange build options, etc) if you want to push what you've got over the weekend.

from ceph-container.

leseb avatar leseb commented on July 17, 2024

Great thanks :)

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

Merged

from ceph-container.

Ulexus avatar Ulexus commented on July 17, 2024

I just wrapped the radosgw in a monitor, and the build is up on Docker Hub, so I think we're done, here.

from ceph-container.

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.