Simple HTTP/HTTPS server to use in a Docker container with Python pre-installed for test proposals (example for Puzl cloud). Server runs Swagger API on 1616
port.
- Python 3.6 or higher
requirements.txt
All the requirements are installing in run.sh
file, which should be set as a Docker entry point.
Choose any Docker image, contains the needed version of Python.
To use your repo from Github without ssh inside a Docker container, generate and use personal access token.
For Github:
https://[email protected]/puzl-ee/example-sanic-server.git
To clone repo from Gitlab, use this format:
https://{USER}:{TOKEN}@gitlab.com/repository_path.git
This will install all requirements.txt
and run application then.
bash ./run.sh
Add port 1616
via Puzl dashboard.
Kubernetes Service
will be created for your pod automatically.
You can define your own port, if needed.
LISTEN_PORT
- Swagger API, default 1616
After your pod is up and running in Puzl's Kubernetes cluster, you can access it by a given external port and host name.
http://host:external_port/swagger
/health
- used to check health
/swagger
- Swagger endpoint