-
-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from EtixLabs/feature/docker-deployment
Deployment / CPack / Docker / Boost / Versionning
- Loading branch information
Showing
30 changed files
with
440 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,15 @@ Of course, you can also call for individual tasks if you plug in a Database to C | |
|
||
## Table of content | ||
|
||
- [Installation](#installation) | ||
- [Quick install](#quick-install) | ||
- [Dependencies](#quick-install###dependencies) | ||
- [Five steps guide](#quick-install###five-steps-guide) | ||
- [Manual installation](#manual-installation) | ||
- [Dependencies](#manual-installation###dependencies) | ||
- [Steps](#manual-installation###Steps) | ||
- [Advanced docker deployment](#advanced-docker-deployment) | ||
- [Dependencies](#advanced-docker-deployment###dependencies) | ||
- [Deploy a custom version of Cameradar](#advanced-docker-deployment###deploy-a-custom-version-of-cameradar) | ||
- [Configuration](#configuration) | ||
- [Output](#output) | ||
- [Check camera access](#check-camera-access) | ||
|
@@ -28,7 +36,27 @@ Of course, you can also call for individual tasks if you plug in a Database to C | |
- [Next improvements](#next-improvements) | ||
- [License](#license) | ||
|
||
## Installation | ||
## Quick install | ||
|
||
The quick install uses docker to build Cameradar without polluting your machine with dependencies and makes it easy to deploy Cameradar in a few commands. | ||
|
||
### Dependencies | ||
|
||
The only dependencies are `docker` and `docker-compose`. | ||
|
||
### Five steps guide | ||
|
||
1. `git clone [email protected]:EtixLabs/cameradar.git` | ||
2. Go into the Cameradar repository, then to the `deployment` directory | ||
3. Tweak the `conf/cameradar.conf.json` as you need (see [the onfiguration guide here](#configuration) for more information) | ||
4. Run `docker-compose build cameradar` to build the cameradar container | ||
5. Run `docker-compose up cameradar` to launch Cameradar | ||
|
||
If you want to deploy your custom version of Cameradar using the same method, you should check the [advanced docker deployment](#advanced-docker-deployment) tutorial here. | ||
|
||
## Manual installation | ||
|
||
The manual installation is recommended if you want to tweak Cameradar and quickly test them using CMake and running Cameradar in command-line. If you just want to use Cameradar, it is recommended to use the [quick install](#quick-install) instead. | ||
|
||
### Dependencies | ||
|
||
|
@@ -37,6 +65,9 @@ To install Cameradar you will need these packages | |
* cmake (`cmake`) | ||
* gstreamer1.x (`libgstreamer1.0-dev`) | ||
* ffmpeg (`ffmpeg`) | ||
* libcurl (`libcurl4-openssl-dev`) | ||
|
||
### Steps | ||
|
||
The simplest way would be to follow these steps : | ||
|
||
|
@@ -48,6 +79,22 @@ The simplest way would be to follow these steps : | |
6. You can now customize the `conf/cameradar.conf.json` file to set the subnetworks and specific ports you want to scan, as well as the thumbnail generation path. More information will be given about the configuration file in another part of this document. | ||
7. You are now ready to launch Cameradar by launching `./cameradar` in the cameradar_standalone directory. | ||
|
||
## Advanced Docker deployment | ||
|
||
### Dependencies | ||
|
||
The only dependencies are `docker` and `docker-compose`. | ||
|
||
### Deploy a custom version of Cameradar | ||
|
||
2. Go into the Cameradar repository, create a directory named `build` and go in it | ||
3. In the build directory, run `cmake .. -DCMAKE_BUILD_TYPE=Release` This will generate the Makefiles you need to build Cameradar | ||
4. Run the command `make package` to compile it into a package | ||
5. Copy your package into the `deployment` directory | ||
6. Run `docker-compose build cameradar` to build the cameradar container using your custom package | ||
5. Run `docker-compose up cameradar` to launch Cameradar | ||
|
||
|
||
### Configuration | ||
|
||
Here is the basic content of the configuration file with simple placeholders : | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM ubuntu:15.10 | ||
|
||
MAINTAINER [email protected] | ||
|
||
ENV LD_LIBRARY_PATH="/cameradar/libraries" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
nmap \ | ||
ffmpeg \ | ||
libgstreamer1.0-dev \ | ||
gstreamer1.0-plugins-base \ | ||
gstreamer1.0-plugins-good \ | ||
libcurl4-openssl-dev | ||
|
||
ADD cameradar_*_Release_Linux.tar.gz / | ||
RUN mv cameradar_*_Release_Linux cameradar | ||
|
||
RUN mkdir /conf | ||
ADD run.sh /run.sh | ||
|
||
CMD ["/run.sh"] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"subnets" : "172.16.100.13,localhost", | ||
|
||
// If not specified, will scan all ports (1-65535) | ||
"ports" : "554,8554", | ||
"rtsp_url_file" : "conf/url.json", | ||
"rtsp_ids_file" : "conf/ids.json", | ||
|
||
// You must give an accessible path to an already existing directory | ||
"thumbnail_storage_path" : "/tmp", | ||
|
||
"cache_manager_path" : "/cameradar/cache_managers", | ||
"cache_manager_name" : "dumb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"username": [ | ||
"", | ||
"admin", | ||
"Admin", | ||
"root", | ||
"supervisor", | ||
"ubnt" | ||
], | ||
"password" : [ | ||
"", | ||
"admin", | ||
"9999", | ||
"123456", | ||
"pass", | ||
"camera", | ||
"1234", | ||
"12345", | ||
"fliradmin", | ||
"system", | ||
"jvc", | ||
"meinsm", | ||
"root", | ||
"4321", | ||
"1111111", | ||
"password", | ||
"ikwd", | ||
"supervisor", | ||
"ubnt" | ||
] | ||
} |
Oops, something went wrong.