From d471f13eb1f696f91f87cbf736451a4a9df34e0f Mon Sep 17 00:00:00 2001 From: lefos Date: Tue, 9 Nov 2021 18:48:19 +0200 Subject: [PATCH] asd --- README.md | 31 +++++++++++++++++++++++++++++++ install.sh | 12 ++++++------ 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 35bc692..a29f397 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # System and Service Monitoring and Analysis in a Cloud Environment with Services based on Containers +## Requirements + +1. Docker +2. Npm - node +3. Vue CLI + ## Installation Process ``` git clone @@ -28,3 +34,28 @@ docker run --network="thesis_playground-net" --log-driver=fluentd --log-opt tag= ``` You will need to mention a tag as "mongo.whateveryouwant" to be able to see your logs. If your service is a **mongoDB**, a **nodejs** app, or a **redis** you can pick the right tag so you can see your logs. Tags that are already known to the app are "mongo.node", "mongo.redis", "mongo.mongo" + +## IMPORTANT if you run this localy. +For the web-client to run you will need to visit https://api-login.swarmlab.io:8089/ and login with your credentials so you will get a token. The token is visible in the url after your login. + +Then, you will need to copy the url and paste it into the file runLlo.vue, which is into playground-client/src/components/doclive/ + +The line of code that needs to be replaced is the line 690 where you can see a url string. Replace it with your url and save it. The project will refresh and now you will be able to use the web-client. + +## Ansible Deployment for Swarlab-Hybrid (not finished) +An extra deployment method is currently under development so the files: +``` +mongo.yml + +monitorall.yml.sh + +node.yml + +inventory.yml +``` +are to be ignored completely at the moment. + +## Important files for those who are interested + +### Playground-client +First of all, the web-client is a basic vue.js project. \ No newline at end of file diff --git a/install.sh b/install.sh index 2e03bec..4737c18 100644 --- a/install.sh +++ b/install.sh @@ -1,9 +1,9 @@ -git submodule init recursive -echo "Installing the Web-client" +git submodule update --init --recursive +echo "===================Installing the Web-client" cd playground-client && sudo npm i && cp VuetableCssConfig.js node_modules/vuetable-2/src/components -echo "Installing the server" -cd ../../readmongo/swarmlab-app/src && sudo npm i -echo "Installing the dummyservice" -cd ../../dummyservice/swarmlab-app/src && sudo npm i +echo "===================Installing the server" +cd ../readmongo/swarmlab-app/src && sudo npm i +echo "===================Installing the dummyservice" +cd ../../../dummyservice/swarmlab-app/src && sudo npm i # cd ../../ && ./runw.sh && docker-compose up