Run Ceph and RADOS Gateway (RGW) in a single Docker container. Useful for developing and testing S3 applications.
docker run --rm --name picoceph --privileged -v /dev:/dev -v /lib/modules:/lib/modules:ro -p7480:7480 -p8080:8080 ghcr.io/dpeckett/picoceph:latest
The RADOS Gateway S3 service is available at http://localhost:7480.
To create an admin user, run the following command:
docker exec -it picoceph radosgw-admin user create --uid="admin" --display-name="Admin User" --caps="users=*;buckets=*;metadata=*;usage=*;zone=*"
To create a static key for the user, run the following command:
docker exec -it picoceph radosgw-admin key create --uid="admin" --key-type=s3 --access-key=admin --secret-key=admin
The Ceph dashboard is available at http://localhost:8080.
To create an admin user, run the following command:
docker exec -it picoceph sh -c "echo 'p@ssw0rd' | ceph dashboard ac-user-create admin -i - administrator"