Skip to content

Simple web server created with Python and Flask to be used as template in other projects

Notifications You must be signed in to change notification settings

awoisoak/photo-shop

Repository files navigation

photo-shop

Simple web server created with Python and Flask to be used in different devops projects.

  • It will attempt to connect to a DB to retrieve the images, if it can't connect to it it will retrieve them locally.
  • By default it will attempt to connect the DB in the localhost. Set a database url by setting an environment variable DATABASE_URL.
  • If it can not connect to the DB, it will grab the images locally.

photo-shop

In /metrics endpoint it exposes some basic metrics that can be scraped by Prometheus.

A Docker image is built and uploaded to Docker Hub automatically on every push to the repository.

Use awoisoak/photo-shop:main to pull a stable build or awoisoak/photo-shop:latest to pull the last commit at any branch. If interested on a specific branch it can be pulled as well by using it as a tag.

To build the container:

docker build . -t awoisoak/photo-shop

To run it directly from Docker Hub:

docker run -p 9000:9000 -ti awoisoak/photo-shop

About

Simple web server created with Python and Flask to be used as template in other projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published