Skip to content

A minimal ceph RGW docker environment for development

License

Notifications You must be signed in to change notification settings

pr0ton11/ceph-yocto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ceph Yocto

Ceph Yocto is a minimal build container for Ceph RGW (S3) services.

  • Built with Alpine Linux, uses packages from the Alpine repositories
  • Configurable with environment variables (see configuration reference)
  • Does not need any persistent storage, privileged mode or host network mode

Usage

To run the container attached, you can use the following command:

podman run -it -p 7480:7480 -p 8080:8080 ghcr.io/pr0ton11/ceph-yocto:latest

To run the container detached, you can use the following command:

podman run -d -p 7480:7480 -p 8080:8080 ghcr.io/pr0ton11/ceph-yocto:latest

Configuration Reference

The following environment variables can be used to configure the container itself:

# Id of the RGW instance
RGW_ID=1
# Zonegroup to which the RGW instance belongs
RGW_ZONE_GROUP=default
# Zone to which the RGW instance belongs
RGW_ZONE=default
# Domain name of the RGW instance (can be used to access the RGW service with hosts file modification)
RGW_DOMAIN=s3.local
# S3 credentials for the RGW admin user
ACCESS_KEY=yoctodefault
SECRET_KEY=yoctodefault
# Ceph Dashboard credentials
DASHBOARD_USERNAME=yoctoadmin
DASHBOARD_PASSWORD=yoctoadmin

Example:

podman run -d -p 7480:7480 -p 8080:8080 -e SECRET_KEY=verysecret ghcr.io/pr0ton11/ceph-yocto:latest

Additionally, you can configure the ceph cluster (ceph.conf) by utilizing ceph-cft

Example:

CEPH_GLOBAL_LOG_FILE='/var/log/ceph/$cluster-$type.$id.log'
CEPH_OSD_OP_QUEUE=wpq
CEPH_MON_LOG_TO_SYSLOG=true
CEPH_TEST_WITHOUT_SECTION=works
CEPH_CONTAINS_WHITESPACES="Hello World"
CEPH_OSD__1_OBJECTER_INFLIGHT_OPS=512

About

A minimal ceph RGW docker environment for development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages