Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 1.81 KB

README.md

File metadata and controls

67 lines (52 loc) · 1.81 KB

Lite Ceph S3 Gateway Testing Container

A convenient test container for AWS S3 compatible REST API

Environment Variables

Variable Default value
ACCESS_KEY demo-key
SECRET_KEY demo-secret
BUCKET_NAME demo-bucket

Ports

  • 7480 -> HTTP
  • 7443 -> HTTPS

Usage Instructions

Pull

podman pull docker.io/emadalblueshi/lite-ceph-s3-gw:v1.0.0

docker pull docker.io/emadalblueshi/lite-ceph-s3-gw:v1.0.0

Run

podman run -d \
  -p 7480:7480 \
  -p 7443:7443 \
  -e BUCKET_NAME="demo-bucket" \
  -e ACCESS_KEY="demo-key" \
  -e SECRET_KEY="demo-secret" \
  -t emadalblueshi/lite-ceph-s3-gw:v1.0.0

docker run -d \
  -p 7480:7480 \
  -p 7443:7443 \
  -e BUCKET_NAME="demo-bucket" \
  -e ACCESS_KEY="demo-key" \
  -e SECRET_KEY="demo-secret" \
  -t emadalblueshi/lite-ceph-s3-gw:v1.0.0

Test (HTTP)

curl http://localhost:7480/demo-bucket/demo-object.txt

Test (HTTPS)

curl -k https://localhost:7443/demo-bucket/demo-object.txt

Notes

The container image is lighter and faster than ceph/demo because most modules are turned off except for the mandetory ones with radosgw during initializing.

The main reason of this container image is to make integration tests easier for the projects.

Honestly, I'm NOT Ceph expert but I did humble research to make the container image available for the community 🙂

Contribution

Suggestions and pull requests are welcome to optimize the container image for testing environments only.

Credits