To setup the project, run the setup script:
$ ./scripts/setup
Once setup, you can run testing and linting using the appropriate scripts:
$ ./scripts/lint
$ ./scripts/test
To build and run the docker container use the run script:
$ ./scripts/run
To run the native python program, simply run the edgeconnect.http module while the virtualenv is activated
$ . env/bin/activate
$ (env) PYTHONPATH=./src python -m edgeconnect.http
This will setup the server listening on 0.0.0.0:8000
. You can test the server by
running an example discovery curl request:
$ curl http://127.0.0.1:8000/healthz/readiness -i
When the API is running locally you can visit:
Or get the json version from:
$ curl http://127.0.0.1:8000/openapi.json
Providing you have a valid kubectl
context configured and activated, you can simply run the
deploy script:
$ ./scripts/deploy