Comments (14)
@Ulexus Can you test this? https://registry.hub.docker.com/u/ceph/base-rgw/ with #18
from ceph-container.
@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.
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.
base: Yeah, that's exactly what I was meaning
nat: Okay, that makes sense. --net=host
it is.
from ceph-container.
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.
Ack.
from ceph-container.
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.
Ok will run apache from the cli, not really familiar with supervised.
Pushing a version in a couple of minutes.
from ceph-container.
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.
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.
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.
Great thanks :)
from ceph-container.
Merged
from ceph-container.
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)
- Unable to download image HOT 2
- Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist HOT 6
- I want ceph-container to support packaging private images HOT 2
- ceph uses normal users for ssh connections HOT 3
- Ceph container build failed with centos stream8 image HOT 3
- /opt/ceph-container/bin/osd_disk_prepare.sh: line 46: ceph-disk: command not found HOT 7
- Need fix for CVE-2022-21797 HOT 4
- Bootstrap process hangs up for hours HOT 2
- not found /var/lib/ceph/osd/ceph-2//keyring HOT 2
- dnf update in ceph v18 container image is failing HOT 2
- RocksDBStore - cannot set permissions: Operation not permitted HOT 2
- /usr/bin/ceph: stderr Error EIO: Module 'cephadm' has experienced an error and cannot handle commands: ContainerInspectInfo HOT 2
- add ceph-mgr-callhome to IBM downstream container HOT 2
- cephadm has failed ContainerInspectInfo HOT 2
- populate_kvstore error HOT 1
- rename and repurpose this repository HOT 19
- reef builds don't work HOT 12
- Question about osd directory HOT 2
- docker-compose setup dose not run as expected mds and osd HOT 3
- With new quay.io/ceph/ceph:v16 image, ceph-csi meet segfault error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceph-container.