Commit e99bacf1 by amira

Merge branch 'master' of https://municipalitybank.com/mcx/devops

parents 3fd17d03 4a099941
No preview for this file type
...@@ -72,7 +72,7 @@ delete until certain date: ...@@ -72,7 +72,7 @@ delete until certain date:
[orientdb] [orientdb]
./bin/console.sh ./bin/console.sh
CONNECT REMOTE:localhost/MCX admin admin CONNECT remote:localhost/MCX admin admin
- import - import
IMPORT DATABASE /orientdb/backup/MCX-orientdb-72.gz -preserveClusterIDs=true IMPORT DATABASE /orientdb/backup/MCX-orientdb-72.gz -preserveClusterIDs=true
......
No preview for this file type
...@@ -28,3 +28,7 @@ the 'influx' command line. ...@@ -28,3 +28,7 @@ the 'influx' command line.
to copy all accociated files to the correct locations !!! to copy all accociated files to the correct locations !!!
4. In orientdb UI - you must "REBUILD ALL INDEXES" once the system is up.
...@@ -38,6 +38,9 @@ NOTES: ...@@ -38,6 +38,9 @@ NOTES:
To update certifcate on one of the subdomain machines (72 or 244) To update certifcate on one of the subdomain machines (72 or 244)
================================================================= =================================================================
note: not relevant for now, we don't have sub-domains !!!
1. make a tar from a valid config-letsencrypt directory in 1.80: config-letsencrypt.valid-20190616.tar.gz 1. make a tar from a valid config-letsencrypt directory in 1.80: config-letsencrypt.valid-20190616.tar.gz
1. copy a valid crtificate directory as A tar from 1.80. 1. copy a valid crtificate directory as A tar from 1.80.
......
howto-add-user-to-conter-center-ui.txt
objective
=========
how add a new user and apply the user to one profile or more.
- open the UI: http://172.16.1.72/center/#
- In the Login screen choose 'Create an account'
- Press register
- go to firebase https://firebase.google.com/ and login with ipg.test@ipgallery.com
login with:
user: ipg.test@ipgallery.com
password: giptmgr1
- press "Go to console" >> control-center (project) >> Authentication (left menu)
- copy 'User UID' of the newly created user
- go to https://municipalitybank.com:8085/apps/files/?dir=/config/control-center&fileid=202
login with:
user: test
password: giptmgrr
- open NewProfiles.json (click on it, it will open editor)
- go to cities.[your-city].allowedUsersId and add the User UID to the array (in quotes)
## install node
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt-get install -y nodejs
npm install npm --global
check version:
node -v (or nodejs -v)
npm -v
## install yarn (after node)
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
ipg-howto-update-letsencrypt-certficate.txt
Objective
=========
This document describes,
how to create a valid SSL certificate, using letsencrypt, on our development servers!
these updates are relevant to ipgallery-mcz.com domain only. hosts: 1.72, 1.80
A. To create a valid certifcate on ipgaley-mcz.com (1.80)
=========================================================
step 1
------
1. enter ipgallery-mcz.com: ssh root@172.16.1.80).
2. restart the front-end docker: ./sys-restart.sh mcx-frontend.yml front-end
the /opt/mcz/config-letsencrypt directory should be updated with a new valid certifcate.
browse to: https://ipgallery-mcz.com/control/app/ to verify that the website is working with a valid certificate
step 2 (on failure of step 1 only!)
-----------------------------------
if a valid certifcate was not created in step 1, do the following:
1. enter the front-end docker: 'docker exec -it <front-end container id> bash'
2. run: /app/le-renew.sh
the directory: /opt/mcz/config-letsencrypt should be updated with a valid certificate
browse to: https://ipgallery-mcz.com/control/app/ to verify that the website is working with a valid certificate
B. To update the developmnent server (1.72)
===========================================
1. verify that the cerificate on 1.80 is valid
(website: https://ipgallery-mcz.com/control/app/ should work without security warning)
2. enter 172.16.1.80 (ipgalley-mcz.com host)
3. goto mcz directory: cd /opt/mcz/
4. tar config-letsencrypt directory
tar cvfz config-letsencrypt.tar.gz config-letsencrypt
5. copy to host 1.72
scp config-letsencrypt.tar.gz root@172.16.1.72:/opt/mcz/
6. backup config-letsencrypt
mv /opt/mcz/config-letsencrypt /opt/mcz/config-letsencrypt.old
7. open tar
tar xvf config-letsencrypt.tar.gz
8. restore the nginx configuration file (default)
copy the config file from the backuped directory
- cd /opt/mcz/config-letsencrypt.old/nginx/site-confs
- cp /opt/mcz/config-letsencrypt.old/nginx/site-confs/default .
9. restart the front-end docker: ./sys-status.sh mcx-frontend.yml front-end
browse to: https://ipgallery-mcz.com:8072/control/app/ to verify that the website is working with a valid certificate.
ORIENT 3 MIGRATION:
[creating the new spatial property and index]
CREATE PROPERTY Entity.loc EMBEDDED OPoint
CREATE INDEX Entity.loc ON Entity(loc) SPATIAL ENGINE LUCENE
update Entity SET location = {"@class": "OPoint","coordinates" : [-83.353095,42.469501]} where @rid='#14:0'
[delete duplicates by id - old database]
delete vertex Entity where id in (select id from (select from (select id,count(*) from Entity group by id) where count > 1))
Python 3 starter:
sudo apt install python3 python3-dev python3-pip python3-tk
- create virtual env]
python3 -m venv [my-working-directory]
- activate virtual env
source [my-working-directory]/bin/activate
- install tensorflow
pip3 install --upgrade tensorflow
- in vscode
settings.json :
{
"python.pythonPath": "[path/to/your/venv/bin]"
}
- when existing env:
deactivate
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