Skip to content

Commit

Permalink
Merge pull request #15 from EtixLabs/feature/improve-cameradar-ux
Browse files Browse the repository at this point in the history
Feature/improve cameradar ux last details
  • Loading branch information
Ullaakut authored Oct 29, 2016
2 parents 9d78e84 + 74b4590 commit 2564943
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ message ("Here")
set (${PROJECT_NAME}_VERSION_MAJOR 1)
set (${PROJECT_NAME}_VERSION_MINOR 1)
set (${PROJECT_NAME}_VERSION_PATCH 0)
set (${PROJECT_NAME}_SUFFIX "-beta")
set (${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}${${PROJECT_NAME}_SUFFIX}")

find_package(Git REQUIRED)
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,15 @@ In case you want to use Docker to deploy your custom version of Cameradar.

The only dependencies are `docker` and `docker-compose`.

### Deploy a custom version of Cameradar
### Using the package generation script
1. `git clone https://github.com/EtixLabs/cameradar.git`
2. `cd deployment`
3. `rm *.tar.gz`
4. `./build_last_package.sh`
5. `docker-compose build cameradar`
6. `docker-compose up cameradar`

### Deploy a custom version of Cameradar by hand

1. `git clone https://github.com/EtixLabs/cameradar.git`
2. `cd build`
Expand Down
21 changes: 21 additions & 0 deletions deployment/build_last_package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

ESC_SEQ="\x1b["
COL_RESET=$ESC_SEQ"39;49;00m"
COL_RED=$ESC_SEQ"31;01m"
COL_GREEN=$ESC_SEQ"32;01m"
COL_YELLOW=$ESC_SEQ"33;01m"
COL_BLUE=$ESC_SEQ"34;01m"
COL_MAGENTA=$ESC_SEQ"35;01m"
COL_CYAN=$ESC_SEQ"36;01m"

echo -e $COL_YELLOW"Creating package ... "$COL_RESET
{ cd ..
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make package
cp cameradar_*_Release_Linux.tar.gz ../deployment
cd ../deployment
} &> /dev/null
echo -e $COL_GREEN"OK!"$COL_RESET
Binary file not shown.
Binary file added deployment/cameradar_1.1.0_Release_Linux.tar.gz
Binary file not shown.

0 comments on commit 2564943

Please sign in to comment.