SQLite based drone/UAV flight logging application : ASP.NET Core Web API component
1.4K
The DroneFlightLogDb and DroneFlightLog.Api GitHub projects implement the entities, business logic and a REST service for a SQL-based drone flight logbook, providing facilities for recording and querying the following data:
The droneflightlogapisqlite image contains a build of the logic and REST service for a SQLite database.
In order to run this image you'll need docker installed.
The following "docker run" parameters are recommended when running the droneflightlogapisqlite image:
| Parameter | Value | Purpose |
|---|---|---|
| -d | - | Run as a background process |
| -v | /local:/var/opt/droneflightlog.api | Mount the host folder containing the SQLite database |
| -p | 5001:80 | Expose the container's port 80 as port 5001 on the host |
| --rm | - | Remove the container automatically when it stops |
For example:
docker run -d -v /local:/var/opt/droneflightlog.api/ -p 5001:80 --rm davewalker5/droneflightlogapisqlite:latest
The "/local" path given to the -v argument is described, below, and should be replaced with a value appropriate for the host running the container. Similarly, the port number "5001" can be replaced with any available port on the host.
The description of the container parameters, above, specifies that a folder containing the SQLite database file for the Drone Flight Log is mounted in the running container, using the "-v" parameter.
That folder should contain a SQLite database that has been created using the instructions in the Drone Flight Log wiki.
Specifically, the following should be done:
The folder containing the "droneflightlog.db" file can then be passed to the "docker run" command using the "-v" parameter.
To run the image, enter the following command, substituting "/local" for the host folder containing the SQLite database, as described:
docker run -d -v /local:/var/opt/droneflightlog.api/ -p 5001:80 --rm davewalker5/droneflightlogapisqlite:latest
Once the container is running, browse to the following URL on the host:
You should see the Swagger API documentation for the API.
For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details.
Content type
Image
Digest
sha256:5acfbff6c…
Size
130.5 MB
Last updated
about 2 months ago
docker pull davewalker5/droneflightlogapisqlite