- Clone the Repository
- Move to the cloned directory
- Build the docker image: "docker-compose build"
- Create and run a container: "docker-compose up" oder "docker-compose up -d"
- Navigate to http://0.0.0.0:3000/ or http://localhost:3000/ to get "hello world"
Note: If the image is built inside a private network, you can mention gateway to proxy through Ex: docker build --build-arg proxy=hostname:port -t python-rest .
Note: hosted at : https://power2dm.salzburgresearch.at/robogen/
import requests r = requests.post('http://0.0.0.0:3000/v1/api',verify=False, json={"name": "naren"})
headers = {'Content-type': 'application/json'}
print(r.status_code)
if r.ok:
print r.content