Returns aircraft data from BaseStation.sqb
Query example: http://127.0.0.1:8000/api/v1/ac/reg/JA739J
Response:
[
{
"ModeS": "868078",
"Registration": "JA739J",
"ICAOTypeCode": "B77W",
"OperatorFlagCode": "JAL",
"Manufacturer": "BOEING",
"Type": "777 346ER",
"RegisteredOwners": "Japan Airlines"
}
]
cd app
pip install --upgrade -r requirements.txt
litestar run -d --reload
Open http://localhost:8000/schema
Dockerfile will build necessary tools and run app this way:
docker build -t mycoolcompany/acapi .
docker run -d --name acapi --restart on-failure:10 --security-opt no-new-privileges -p 8000:8000 mycoolcompany/acapi
docker run -it --rm --entrypoint /app/prestart.sh mycoolcompany/acapi
docker run -it --rm -p 8000:8000 mycoolcompany/acapi
kubectl apply -f .\acapi-k8s.yml
This will deploy 4 instances of backend and 1 instance of varnish cache on port 30080