Sign inSign up

davewalker5/flightrecorderapisqlite

By davewalker5

•Updated about 1 month ago

SQLite based aircraft spotting logging application : ASP.NET Core Web API component

Image
0

1.6K

davewalker5/flightrecorderapisqlite repository overview

⁠flightrecorderapisqlite

The FlightRecorder⁠ GitHub project implements a REST service and associated web-based UI for a SQL-based aircraft sightings logbook, providing facilities for recording and querying the following data:

  • Manufacturer, model and aircraft registration details
  • Airline and flight details
  • Sighting locations
  • Aircraft sightings

The flightrecorderapisqlite image contains a build of the logic and REST service for a SQLite database.

⁠Getting Started

⁠Prerequisities

In order to run this image you'll need docker installed.

⁠Usage
⁠Container Parameters

The following "docker run" parameters are recommended when running the flightrecorderapisqlite image:

ParameterValuePurpose
-d-Run as a background process
-v/local:/var/opt/flightrecorder.apiMount the host folder containing the SQLite database
-p5001:80Expose 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/flightrecorder.api -p 5001:80 --rm  davewalker5/flightrecorderapisqlite: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.

⁠Volumes

The description of the container parameters, above, specifies that a folder containing the SQLite database file for the Flight Recorder database 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 Flight Recorder wiki⁠.

Specifically, the following should be done:

The folder containing the "flightrecorder.db" file can then be passed to the "docker run" command using the "-v" parameter.

⁠Running the Image

To run the image, enter the following command, substituting "/local" for the host folder containing the SQLite database:

docker run -d -v  /local:/var/opt/flightrecorder.api/ -p 5001:80 --rm  davewalker5/flightrecorderapisqlite:latest
⁠Documentation

The API implements Swagger in the development environment. To see the documentation, checkout the code from GitHub, run the API from that working copy and browse to the following URL:

https://localhost:5001/⁠

Replace "5001" with whatever port number the API is listening on.

⁠Find Us

⁠Versioning

For the versions available, see the tags on this repository⁠.

⁠Authors

  • Dave Walker - Initial work

See also the list of contributors⁠ who participated in this project.

⁠License

This project is licensed under the MIT License - see the LICENSE⁠ file for details.

Tag summary

Content type

Image

Digest

sha256:14e32b5b6…

Size

130.7 MB

Last updated

about 1 month ago

docker pull davewalker5/flightrecorderapisqlite