Created
December 22, 2017 21:44
-
-
Save barlowm/b4340a0304db14539afe9a0c72eee75f to your computer and use it in GitHub Desktop.
CentOS VM Working Installation for VSR Project
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
-----------------Node JS Ver 9.X WORKS ----------------- | |
curl --silent --location https://rpm.nodesource.com/setup_9.x | sudo bash - | |
sudo yum -y install nodejs | |
----------------- Sublime Text Ver 3.X WORKS ----------------- | |
rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg | |
yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo | |
yum install sublime-text | |
----------------- Smartgit WORKS ----------------- | |
wget http://www.syntevo.com/static/smart/download/smartgit/smartgit-linux-17_1_3.tar.gz -O smartgit.tar.gz | |
tar -xzf smart*.tar.gz -C /opt | |
ln -s /opt/smartgit/bin/smartgit.sh /usr/bin/smartgit | |
----------------- Postman WORKS ----------------- | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
tar -xzf postman.tar.gz -C /opt | |
rm postman.tar.gz | |
ln -s /opt/Postman/Postman /usr/bin/postman | |
yum install libXScrnSaver | |
----------------- Docker WORKS ----------------- | |
yum remove docker docker-common docker-selinux docker-engine | |
yum install -y yum-utils device-mapper-persistent-data lvm2 | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum install docker-ce | |
systemctl start docker | |
docker run hello-world | |
----------------- Couchbase ----------------- | |
docker run -d --name db -p 8091-8094:8091-8094 -p 11210-11211:11210-11211 couchbase | |
Connfigure cluster | |
Add "audit" bucket | |
Query: create primary index vsraudit on audit | |
------------------------------------ | |
clone the VSR_Audit into /root/VSR_Audit | |
make sure .ENV file is there (else the "listening on port NaN" occurs) | |
update the .env and the postman_environment with the correct userkey | |
"key": "userkey", | |
"value": "e68eeae95e2b42c7b7af5cbcba6a0300", | |
Need to change the API Address in the .ENV file and in the Postman_env.json file | |
node server | |
If get an error reporting listening on port NaN: | |
{"name":"VISTA Audit API","hostname":"localhost.localdomain","pid":11388,"level":30,"msg":"Worker 1 listening on port NaN ...","time":"2017-12-22T17:41:03.960Z","v":0} | |
Then need to open the port specified in the .env file (typically 3121) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment