Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/emadalblueshi/lite-ceph-s3-gw

Lite Ceph S3 Gateway Testing Container
https://github.com/emadalblueshi/lite-ceph-s3-gw

api-gateway api-rest aws-apigateway aws-s3 ceph ceph-radosgw container docker docker-image integration-testing podman podman-image radosgw s3 test-environment testing

Last synced: 13 days ago
JSON representation

Lite Ceph S3 Gateway Testing Container

Awesome Lists containing this project

README

        

## 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](https://github.com/EmadAlblueshi/lite-ceph-s3-gw) is lighter and faster than [ceph/demo](https://quay.io/repository/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
- [ceph-s3-box](https://github.com/hetznercloud/ceph-s3-box)
- [yuezhu](https://gist.github.com/yuezhu/1b24e5d22054b56d271a3a61506a15de)