SQLite based maritime spotting logging application : ASP.NET Core MVC UI component
1.1K
The ShippingRecorder GitHub project implements a REST service and associated web-based UI for a SQL-based marine vessel sightings logbook, providing facilities for recording and querying the following data:
The shippingrecordermvc image contains a build of the UI and is intended to be run as a pair with the associated web service.
In order to run this image you'll need docker installed.
An instance of the shippingrecorderapisqlite image must be started first in order for the UI to work. The recommended parameters are:
| Parameter | Value | Purpose |
|---|---|---|
| -d | - | Run as a background process |
| -v | /local:/var/opt/shippingrecorder.api | Mount the host folder containing the SQLite database |
| --name | shippingrecorderservice | Name the service so the UI can find it |
| --rm | - | Remove the container automatically when it stops |
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.
The "--name" parameter is mandatory as the service URL is held in the application settings for the UI image and is expected to be:
http://shippingrecorderservice:80
The following "docker run" parameters are recommended when running the shippingrecordermvc image:
| Parameter | Value | Purpose |
|---|---|---|
| -d | - | Run as a background process |
| -p | 5001:80 | Expose the container's port 80 as port 5001 on the host |
| --link | shippingrecorderservice | Link to the shipping recorder service container |
| --rm | - | Remove the container automatically when it stops |
For example:
docker run -d -p 5001:80 --rm --link shippingrecorderservice davewalker5/shippingrecordermvc:latest
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 Shipping Recorder 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 Shipping Recorder wiki.
Specifically, the following should be done:
The folder containing the "shippingrecorder.db" file can then be passed to the "docker run" command using the "-v" parameter.
To run the images for the service and UI, enter the following commands, substituting "/local" for the host folder containing the SQLite database, as described:
docker run -d -v /local:/var/opt/shippingrecorder.api/ --name shippingrecorderservice --rm davewalker5/shippingrecorderapisqlite:latest
docker run -d -p 5001:80 --rm --link shippingrecorderservice davewalker5/shippingrecordermvc:latest
Once the container is running, browse to the following URL on the host:
You should see the login page for the UI.
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:49849759c…
Size
154.4 MB
Last updated
about 2 months ago
docker pull davewalker5/shippingrecordermvc