Commit 6e80cf00 by Adi Amir

update devops

parent 2fad0ecc
{
"cities": {
"chicago": {
"allowedUsersId": ["8AvsYLUqTJfrD1CArCq1BKl1EEw2", "FKUHrJXq7fb3x9Yi3Jdsc1IlzG32","gdVa5y8qkORUpCQJLbs0QR6oxXG2"],
"latLng": [41.864312, -87.646782],
"city": "chicago",
"title": "Chicago",
"useSAP": true,
"cameraParams": {
"pollingUrl":"../polling/chicago/cameras"
},
"autoReportParams": {
"deltaLatRadius": -0.212767,
"deltaLngRadius": -0.113297,
"latLngPoint": [41.958699, -87.646782]
},
"parkingParams": {
"pollingUrl":"../polling/chicago/parking-spots"
},
"filtersProfiles": {
"base-duration": [{"name":"duration", "type":"time/relative", "value":0, "apiParam":"fromTs"}],
"status-open": ["base-duration",{"name":"status", "type":"string", "value":"open", "apiParam":"status"}]
},
"centerZoomLevel": 12,
"useLiveApi": true,
"mapLayersDropdown": {
"domains": {
"transportation": { "items": [
{ "name": "traffic", "id":"thing/traffic", "filters":["base-duration"]},
{ "name": "parking", "id":"thing/parking" },
{ "name":"bus" ,"id": "thing/bus"},
{ "name": "cars", "id":"thing/cars" },
{ "name": "routes", "id":"thing/route", "type": "select" }]
},
"engagement": { "items": [
{ "name":"municipal", "id":"report/municipal", "filters":["status-open"]},
{ "name":"traffic", "id":"report/traffic"},
{ "name":"publicSafety", "id":"report/publicSafety", "filters":["status-open"]},
{ "name":"healthCare", "id":"report/healthCare"},
{ "name":"transport","id":"report/transport"}]
},
"environment": { "items": [{"name":"airQuality", "id":"thing/airQuality"}] },
"media": { "items": [{"name":"camera", "id":"thing/camera"}] }
},
"layers":{
"items": [
{ "name": "traffic", "id":"traffic"},
{ "name": "buildings", "id":"buildings"},
{ "name": "draw", "id":"draw"}
]
},
"styles": {
"type":"select",
"items": [
{
"title": "Night",
"uri":"mapbox://styles/mapbox/navigation-guidance-night-v4"
},
{
"title": "Day",
"uri":"mapbox://styles/mapbox/navigation-guidance-day-v4"
},
{
"title": "Street",
"uri":"mapbox://styles/mapbox/streets-v10"
},
{
"title": "Satellite",
"uri":"mapbox://styles/mapbox/satellite-streets-v10"
}
] }
}
},
"san-diego": {
"allowedUsersId": ["8AvsYLUqTJfrD1CArCq1BKl1EEw2", "FKUHrJXq7fb3x9Yi3Jdsc1IlzG32","gdVa5y8qkORUpCQJLbs0QR6oxXG2"],
"latLng": [32.712520, -117.157388],
"city": "san-diego",
"title": "San-Diego",
"useSAP": true,
"alertsNumber": "97297705820",
"cameraParams": {
"deltaLatRadius": 0.1,
"deltaLngRadius": 0.2,
"latLngPoint": [32.79536, -117.2376],
"numOfCameras": 5
},
"autoReportParams": {
"deltaLatRadius": 0,
"deltaLngRadius": 0.2,
"latLngPoint": [32.79536, -117.2376]
},
"parkingParams": {
"latLngPoint": [32.712520, -117.157388],
"zoomLevel": 18
},
"environmentParams": {
"latLngPoint": [32.712520, -117.157388],
"zoomLevel": 18
},
"showRightMenu": true,
"zoomOnToggle": true,
"centerZoomLevel": 12,
"mapLayersDropdown": {
"domains": {
"transportation": { "items": [
{ "name": "traffic", "id":"thing/traffic"},
{ "name": "parking", "id":"thing/parking" },
{ "name":"crosswalks", "id":"thing/crosswalks"},
{ "name": "routes", "id":"thing/route", "type": "select" }]
},
"engagement": { "items": [
{ "name":"municipal", "id":"report/municipal"},
{ "name":"traffic", "id":"report/traffic"},
{ "name":"safety", "id":"report/publicSafety"},
{ "name":"health", "id":"report/healthCare"},
{ "name":"transport","id":"report/transport"}]
},
"environment": { "items": [{"name":"airQuality", "id":"thing/airQuality"}] },
"media": { "items": [{"name":"camera", "id":"thing/camera"}] }
},
"layers":{
"items": [
{ "name": "buildings", "id":"buildings"}
]
},
"styles": {
"type":"select",
"items": [
{
"title": "Night",
"uri":"mapbox://styles/mapbox/navigation-guidance-night-v4"
},
{
"title": "Day",
"uri":"mapbox://styles/mapbox/navigation-guidance-day-v4"
},
{
"title": "Street",
"uri":"mapbox://styles/mapbox/streets-v10"
},
{
"title": "Satellite",
"uri":"mapbox://styles/mapbox/satellite-streets-v10"
}
] }
}
},
"san-jose": {
"allowedUsersId": ["8AvsYLUqTJfrD1CArCq1BKl1EEw2", "FKUHrJXq7fb3x9Yi3Jdsc1IlzG32","gdVa5y8qkORUpCQJLbs0QR6oxXG2"],
"latLng": [37.307142, -121.954557],
"city": "san-diego",
"title": "San-Diego",
"useSAP": true,
"alertsNumber": "97297705820",
"cameraParams": {
"pollingUrl":"../polling/san-jose/cameras"
},
"autoReportParams": {
"deltaLatRadius": 0,
"deltaLngRadius": 0.2,
"latLngPoint": [37.307142, -121.954557]
},
"parkingParams": {
"latLngPoint": [37.307142, -121.954557],
"zoomLevel": 18
},
"environmentParams": {
"latLngPoint": [37.307142, -121.954557],
"zoomLevel": 18
},
"showRightMenu": true,
"zoomOnToggle": true,
"centerZoomLevel": 10,
"mapLayersDropdown": {
"domains": {
"transportation": { "items": [
{ "name": "traffic", "id":"thing/traffic"},
{ "name": "parking", "id":"thing/parking" },
{ "name":"crosswalks", "id":"thing/crosswalks"},
{ "name": "bicycles", "id":"thing/bicycles" },
{ "name":"bus" ,"id": "thing/bus"},
{ "name": "cars", "id":"thing/cars" },
{ "name":"routes", "id":"thing/route", "type": "select"}]
},
"engagement": { "items": [
{ "name":"municipal", "id":"report/municipal"},
{ "name":"traffic", "id":"report/traffic"},
{ "name":"public Safety", "id":"report/publicSafety"}
]
},
"environment": { "items": [
{"name":"airQuality", "id":"thing/airQuality"},
{"name":"waste", "id":"thing/waste"},
{"name":"lights", "id":"thing/light"}
] },
"media": { "items": [{"name":"camera", "id":"thing/camera"}] }
},
"layers":{
"items": [
{ "name": "traffic", "id":"traffic"},
{ "name": "buildings", "id":"buildings"}
]
},
"styles": {
"type":"select",
"items": [
{
"title": "Night",
"uri":"mapbox://styles/mapbox/navigation-guidance-night-v4?optimize=true"
},
{
"title": "Street",
"uri":"mapbox://styles/mapbox/streets-v10"
},
{
"title": "Satellite",
"uri":"mapbox://styles/mapbox/satellite-streets-v10"
},
{
"title": "Gallery3D",
"uri": "mapbox://styles/ipgtest/cjgp2q2kz00002rpg99raaaiz"
}
] }
}
},
"fremont": {
"allowedUsersId": ["8AvsYLUqTJfrD1CArCq1BKl1EEw2", "FKUHrJXq7fb3x9Yi3Jdsc1IlzG32","gdVa5y8qkORUpCQJLbs0QR6oxXG2","to3UcIHWGyXy0q5BWQ4ySSNEKCv2"],
"latLng": [37.533001, -121.983398],
"city": "san-diego",
"title": "San-Diego",
"useSAP": true,
"alertsNumber": "97297705820",
"cameraParams": {
"pollingUrl":"../polling/fremont/cameras"
},
"parkingParams": {
"latLngPoint": [37.533001, -121.983398],
"zoomLevel": 18
},
"environmentParams": {
"latLngPoint": [37.533001, -121.983398],
"zoomLevel": 18
},
"poiFiles": {
"schools":"/cms/s/PM82g47cWzredgX/download",
"trafficLights": "/cms/s/SHsrCUnvnrEpVFX/download"
},
"filtersProfiles": {
"base-duration": [{"name":"duration", "type":"time/relative", "value":0, "apiParam":"fromTs"}],
"status-open": ["base-duration",{"name":"status", "type":"string", "value":"open", "apiParam":"status"}]
},
"showRightMenu": true,
"getAllReportsTimeout": 10000,
"zoomOnToggle": true,
"centerZoomLevel": 12,
"mapLayersDropdown": {
"domains": {
"transportation": { "items": [
{ "name":"bus" ,"id": "thing/bus"},
{ "name": "bicycles", "id":"thing/bicycles" },
{ "name": "cars", "id":"thing/cars" },
{ "name": "charging", "id":"thing/chargingStations" },
{ "name": "routes", "id":"thing/route", "type": "select" }]
},
"engagement": { "items": [
{ "name":"traffic", "id":"report/traffic", "filters":["status-open"]},
{ "name":"publicSafety", "id":"report/publicSafety", "filters":["status-open"]}
]
},
"environment": { "items": [{"name":"airQuality", "id":"thing/airQuality"}] },
"media": { "items": [{"name":"camera", "id":"thing/camera"}] },
"info": {
"items": [
{"name":"schools", "id":"poi/schools"}
]
}
},
"layers":{
"items": [
{ "name": "traffic", "id":"traffic"},
{ "name":"traffic-lights", "id":"trafficLights", "type":"tilesets", "url":"mapbox://ipgtest.8o5cxs9c"},
{ "name": "buildings", "id":"buildings"},
{ "name": "draw", "id":"draw"}
]
},
"styles": {
"type":"select",
"items": [
{
"title": "Night",
"uri":"mapbox://styles/mapbox/navigation-guidance-night-v4"
},
{
"title": "Day",
"uri":"mapbox://styles/mapbox/navigation-guidance-day-v4"
},
{
"title": "Street",
"uri":"mapbox://styles/mapbox/streets-v10"
},
{
"title": "Satellite",
"uri":"mapbox://styles/mapbox/satellite-streets-v10"
}
] }
}
},
"bar-ilan": {
"allowedUsersId": ["8AvsYLUqTJfrD1CArCq1BKl1EEw2", "FKUHrJXq7fb3x9Yi3Jdsc1IlzG32","gdVa5y8qkORUpCQJLbs0QR6oxXG2","1oBkZGFtgvgMtDMXWk2Kt1EQD603"],
"latLng": [32.069772,34.843098],
"city": "bar-ilan",
"title": "Bar-Ilan",
"useSAP": false,
"alertsNumber": "97297705820",
"cameraParams": {
"pollingUrl":"../polling/bar-ilan/cameras"
},
"summaryCharts":["ParkingAvailability","ParkingTimeDistribution"],
"thingParking": 5000,
"autoReportParams": {
"deltaLatRadius": 0,
"deltaLngRadius": 0.2,
"latLngPoint": [32.069772,34.843098]
},
"parkingParams": {
"latLngPoint": [32.069772,34.843098],
"zoomLevel": 18
},
"environmentParams": {
"latLngPoint": [32.069772,34.843098],
"zoomLevel": 18
},
"showRightMenu": true,
"zoomOnToggle": true,
"centerZoomLevel": 16,
"mapLayersDropdown": {
"domains": {
"transportation": { "items": [
{ "name": "traffic", "id":"thing/traffic"},
{ "name": "parking", "id":"thing/parking" },
{ "name":"crosswalks", "id":"thing/crosswalks"}]
},
"engagement": { "items": [
{ "name":"municipal", "id":"report/municipal"},
{ "name":"traffic", "id":"report/traffic"},
{ "name":"safety", "id":"report/publicSafety"},
{ "name":"health", "id":"report/healthCare"},
{ "name":"transport","id":"report/transport"}]
},
"environment": { "items": [{"name":"airQuality", "id":"thing/airQuality"}] },
"media": { "items": [{"name":"camera", "id":"thing/camera"}] }
},
"layers":{
"items": [
{ "name": "traffic", "id":"traffic"},
{ "name": "buildings", "id":"buildings"}
]
},
"styles": {
"type":"select",
"items": [
{
"title": "Night",
"uri":"mapbox://styles/mapbox/navigation-guidance-night-v4"
},
{
"title": "Day",
"uri":"mapbox://styles/mapbox/navigation-guidance-day-v4"
},
{
"title": "Street",
"uri":"mapbox://styles/mapbox/streets-v10"
},
{
"title": "Satellite",
"uri":"mapbox://styles/mapbox/satellite-streets-v10"
}
] }
}
},
"netanya": {
"allowedUsersId": ["8AvsYLUqTJfrD1CArCq1BKl1EEw2", "FKUHrJXq7fb3x9Yi3Jdsc1IlzG32","gdVa5y8qkORUpCQJLbs0QR6oxXG2"],
"latLng": [32.308952, 34.854285],
"city": "netanya",
"title": "Netanya",
"useSAP": false,
"alertsNumber": "97297705820",
"cameraParams": {
"deltaLatRadius": 0.1,
"deltaLngRadius": 0.2,
"latLngPoint": [32.308952, 34.854285],
"numOfCameras": 5,
"url": "http://95.35.30.163/cgi-bin/faststream.jpg?stream=half&fps=15&rand=COUNTER"
},
"autoReportParams": {
"deltaLatRadius": 0,
"deltaLngRadius": 0.2,
"latLngPoint": [31.664884, 34.564016]
},
"parkingParams": {
"latLngPoint": [31.664884, 34.564016],
"zoomLevel": 18
},
"environmentParams": {
"latLngPoint": [31.664884, 34.564016],
"zoomLevel": 18
},
"showRightMenu": true,
"zoomOnToggle": true,
"centerZoomLevel": 12,
"mapLayersDropdown": {
"domains": {
"transportation": { "items": [
{ "name": "traffic", "id":"thing/traffic"},
{ "name": "parking", "id":"thing/parking" },
{ "name":"crosswalks", "id":"thing/crosswalks"}]
},
"engagement": { "items": [
{ "name":"municipal", "id":"report/municipal"},
{ "name":"traffic", "id":"report/traffic"},
{ "name":"safety", "id":"report/publicSafety"},
{ "name":"health", "id":"report/healthCare"},
{ "name":"transport","id":"report/transport"}]
},
"environment": { "items": [{"name":"airQuality", "id":"thing/airQuality"}] },
"media": { "items": [{"name":"camera", "id":"thing/camera"}] }
},
"layers":{
"items": [
{ "name": "traffic", "id":"traffic"},
{ "name": "buildings", "id":"buildings"}
]
},
"styles": {
"type":"select",
"items": [
{
"title": "Night",
"uri":"mapbox://styles/mapbox/navigation-guidance-night-v4"
},
{
"title": "Street",
"uri":"mapbox://styles/mapbox/streets-v10"
},
{
"title": "Satellite",
"uri":"mapbox://styles/mapbox/satellite-streets-v10"
},
{
"title": "Gallery3D",
"uri": "mapbox://styles/ipgtest/cjgp2q2kz00002rpg99raaaiz"
}
] }
} },
"ashkelon": {
"allowedUsersId": ["8AvsYLUqTJfrD1CArCq1BKl1EEw2", "FKUHrJXq7fb3x9Yi3Jdsc1IlzG32","gdVa5y8qkORUpCQJLbs0QR6oxXG2","WkRmk5Z9UubvSg31N1K3VPRM47w1"],
"latLng": [31.664884, 34.564016],
"city": "ashkelon",
"title": "Ashkelon",
"useSAP": false,
"thingParking": 5000,
"alertsNumber": "97297705820",
"cameraParams": {
"deltaLatRadius": 0.1,
"deltaLngRadius": 0.2,
"latLngPoint": [31.664884, 34.564016],
"numOfCameras": 5,
"url": "http://176.12.131.175/cgi-bin/faststream.jpg?stream=half&fps=15&rand=COUNTER"
},
"autoReportParams": {
"deltaLatRadius": 0,
"deltaLngRadius": 0.2,
"latLngPoint": [31.664884, 34.564016]
},
"parkingParams": {
"latLngPoint": [31.664884, 34.564016],
"zoomLevel": 18
},
"environmentParams": {
"latLngPoint": [31.664884, 34.564016],
"zoomLevel": 18
},
"summaryCharts":["ParkingAvailability","ParkingTimeDistribution"],
"showRightMenu": true,
"zoomOnToggle": true,
"centerZoomLevel": 12,
"mapLayersDropdown": {
"domains": {
"תחבורה": { "items": [
{ "name": "חניה", "id":"thing/parking" }]
},
"עירייה": { "items": [
{ "name":"106", "id":"report/municipal"}]
},
"סביבה": { "items": [{"name":"זיהום", "id":"thing/airQuality"}] }
},
"layers":{
"items": [
{ "name": "תחבורה", "id":"traffic"},
{ "name": "בניינים", "id":"buildings"}
]
},
"styles": {
"type":"select",
"items": [
{
"title": "רגיל",
"uri": "mapbox://styles/ipgtest/cjgp2q2kz00002rpg99raaaiz"
},
{
"title": "לילה",
"uri":"mapbox://styles/mapbox/navigation-guidance-night-v4"
},
{
"title": "יום",
"uri":"mapbox://styles/mapbox/navigation-guidance-day-v4"
},
{
"title": "רחוב",
"uri":"mapbox://styles/mapbox/streets-v10"
},
{
"title": "לויין",
"uri":"mapbox://styles/mapbox/satellite-streets-v10"
}
] }
}
},
"ashdod": {
"allowedUsersId": ["8AvsYLUqTJfrD1CArCq1BKl1EEw2", "FKUHrJXq7fb3x9Yi3Jdsc1IlzG32","gdVa5y8qkORUpCQJLbs0QR6oxXG2"],
"latLng": [31.791778, 34.640176],
"city": "ashdod",
"title": "Ashdod",
"useSAP": false,
"alertsNumber": "97297705820",
"cameraParams": {
"deltaLatRadius": 0.1,
"deltaLngRadius": 0.2,
"latLngPoint": [31.791778, 34.640176],
"numOfCameras": 5,
"url": "http://83.91.176.250:80/mjpg/video.mjpg"
},
"autoReportParams": {
"deltaLatRadius": 0,
"deltaLngRadius": 0.2,
"latLngPoint": [31.791778, 34.640176]
},
"parkingParams": {
"latLngPoint": [31.791778, 34.640176],
"zoomLevel": 18
},
"environmentParams": {
"latLngPoint": [31.791778, 34.640176],
"zoomLevel": 18
},
"showRightMenu": true,
"zoomOnToggle": true,
"centerZoomLevel": 12,
"mapLayersDropdown": {
"domains": {
"תחבורה": { "items": [
{ "name": "תחבורה", "id":"thing/traffic"},
{ "name": "חניה", "id":"thing/parking" },
{ "name":"אוטובוסים" ,"id": "thing/bus"},
{ "name":"מעבר חציה", "id":"thing/crosswalks"}]
},
"עירייה": { "items": [
{ "name":"106", "id":"report/municipal"},
{ "name":"תחבורה", "id":"report/traffic"},
{ "name":"בטיחות", "id":"report/publicSafety"},
{ "name":"בריאות", "id":"report/healthCare"},
{ "name":"תעבורה","id":"report/transport"}]
},
"סביבה": { "items": [{"name":"זיהום", "id":"thing/airQuality"}] }
},
"layers":{
"items": [
{ "name": "תחבורה", "id":"traffic"},
{ "name": "מבנים", "id":"buildings"}
]
},
"styles": {
"type":"select",
"items": [
{
"title": "רגיל",
"uri": "mapbox://styles/ipgtest/cjgp2q2kz00002rpg99raaaiz"
},
{
"title": "לילה",
"uri":"mapbox://styles/mapbox/navigation-guidance-night-v4"
},
{
"title": "יום",
"uri":"mapbox://styles/mapbox/navigation-guidance-day-v4"
},
{
"title": "רחוב",
"uri":"mapbox://styles/mapbox/streets-v10"
},
{
"title": "לויין",
"uri":"mapbox://styles/mapbox/satellite-streets-v10"
}
] }
}
}
},
"defaultCity": "fremont",
"users": []
}
\ No newline at end of file
......@@ -14,7 +14,7 @@ To re-generate a new valid certficate on one of the domains(safeyme.com/ipgaller
2. backup the current certtficate
>cd /opt/mcz
>tar czvf config-letsencrypt-20190616.tar.gz config-letsencrypt
> mv /config-letsencrypt /config-letsencrypt_old
> mv config-letsencrypt/ config-letsencrypt_old/
3. stop the frontend
......@@ -23,6 +23,7 @@ To re-generate a new valid certficate on one of the domains(safeyme.com/ipgaller
4. generate a new certifcate - run the docker: letsencrypt
>cd /opt/mcx/config/docker/
>dc -f letsencrypt.yml up
the latest succesfull print should be: "Server ready"
Ctrl+C too stop !
5. check that a directory named 'letsencrypt' exists under '/opt/mcz/config-letsencrypt'
......
......@@ -13,6 +13,7 @@ To reserve a sendbox
2. login
user: ipg.test@ipgallery.com
password: @iptMgr1
3. select "kinetic for cities" sandbox
3. press "Reserve" to create a sendbox
a mail will be sent to ipg.test@igallery.com with all required credentials
in order to start using CKC api.
......
......@@ -56,8 +56,13 @@ install the latest version of docker
ref: https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-ubuntu-16-04
if ufw is installed on the host you must open the jenkins port (defualt=8080)
>ufw allow 8080
2.1 install
>wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
>wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
>echo deb https://pkg.jenkins.io/debian binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
>apt-get update
>apt-get install jenkins
>systemctl start jenkins
......@@ -66,7 +71,7 @@ install the latest version of docker
2.2 add 'jenkins' user to docker group & restart jenkins !!!
>usermod -a -G docker jenkins
>systemctl stop jenkins
>systemctl stat jenkins
>systemctl start jenkins
note: if you re-install docker you need to perform this step again
......@@ -120,6 +125,14 @@ https://www.youtube.com/watch?v=9r1g_idFkIs
>mkdir /opt/gradle
>unzip -d /opt/gradle /tmp/gradle-3.2.1-bin.zip
add gradle to $PATH
>cd /etc/profile.d
>touch gradle.sh
>nano gradle.sh
export GRADLE_HOME=/opt/gradle/gradle-3.2.1
export PATH=${GRADLE_HOME}/bin:${PATH}
>source gradle.sh
important note: the latest gradle 5.2.1 produced errors in resolving of packages !!!
use only 3.2.1 at this stage
......
......@@ -3,7 +3,7 @@ renew-certificate-for-municipalitybank.txt
objective
=========
in case the municipalitybank's cerificate expires, you need to restart gitlab,stunnel-archiva and owncloud dockers
in order to read and update certficate. since it doesn't happens automaticall.
in order to read and update certficate. since it doesn't happens automatically.
gitlab & archives(stunnel-archiva and owncloud) uses the same certificate.
A. To restart stunnel-archiva
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment