Ceph Nano Docker
You can follow README file in https://github.com/ceph/cn, it is so easy to follow up.
You can perform all the steps starting from “Installation”. You may need to give permission to folder “/usr/share” in Docker, from Settings — Resources — File Sharing.
Finally, Dashboard looks like this:
user: nano password: nano
To reach from code:
Go to https://github.com/ceph/cn and run the command under the title “Troubleshooting — verify that your config dump should look like this”:
docker exec cn ceph config dump
With the values returned from the command, you can connect now (using aws-java-sdk):
private static final String ACCESS_KEY = “517VHW3VYZTBOLXIF8LS”;
private static final String SECRET_KEY = “0iMN6N8E9vcI1rJ70ChpvhqlWG2B79Y4Z7b2yJwS”;
private static final String HOSTNAME = “http://127.0.0.1:8000";
Note: If you are trying to reach Ceph Nano from Zimbra installed on a Vagrant, HOSTNAME = “http://10.0.2.2:8000" should be set.
You can also see secret key and access key from Ceph Nano Dashboard — Object Gateway — Users, rgw → Edit, keys.
I gave full permission to rgw user’s Capabilities (all capabilities, user quota enabled, bucket quota enabled). I got an error during saving but actually it was successful at the backend:
We can run rgw gateway commands on Docker (https://docs.ceph.com/docs/master/man/8/radosgw-admin/#commands):
With Docker cli (the button in the upper screenshot), terminal is opened: