Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/emadalblueshi/lite-ceph-s3-gw
- Owner: EmadAlblueshi
- Created: 2024-05-29T21:01:46.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-30T14:44:30.000Z (8 months ago)
- Last Synced: 2024-11-27T22:12:09.437Z (2 months ago)
- Topics: 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
- Language: Shell
- Homepage: https://hub.docker.com/r/emadalblueshi/lite-ceph-s3-gw
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.0docker 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.0docker 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)