A very simple microservice to convert between image formats and resize.
- Python
3.10+ - pip
- virtualenv
- Podman
- Docker
virtualenv .venv
source .venv/bin/activatepip install -r requirements.txtcd src/
gunicorn image_converter:app run Now, you can browse http://127.0.0.1:8000 to view and test API documentation in Swagger.
podman build -t image-converter .Run the built container image:
podman run --rm -d -p 8000:8000 localhost/image-converter:latestdocker build -t image-converter .Run the built container image:
docker run --rm -d -p 8000:8000 localhost/image-converter:latestFollowing credentials can be used for HTTP Basic Auth for testing:
- Username:
cns_demo - Password:
cns_demo