From 637b98f95a7e7ada7a50340789615c66bf6dd594 Mon Sep 17 00:00:00 2001 From: lefos Date: Tue, 9 Nov 2021 18:08:26 +0200 Subject: [PATCH] install readme.md --- README.md | 29 ++++++++++++++++++++++++++++- install.sh | 9 +++++++++ mongo.yml | 3 ++- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 install.sh diff --git a/README.md b/README.md index 6968d91..35bc692 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,30 @@ # System and Service Monitoring and Analysis in a Cloud Environment with Services based on Containers -This project was made as part of my thesis. You can run it by cloning the same structure of the folder as it is shown above and running it via the docker-compose.yml file, that will create multiple containers. Then you need to deploy the web-client that is developed with Vue.js by running the file "runw.sh". Visit localhost:8080 and you are right there. More of the functionality will soon be written. \ No newline at end of file +## Installation Process +``` +git clone +cd Thesis +chmod 700 install.sh +./install.sh +``` +## Run Web-client +``` +./runw.sh +``` +## Run the rest services +``` +docker-compose up +``` + +...and you are done. + +### You can access the web-client on and monitor some logs: +>http://localhost:8080 + +## Add your own Service to the system +All you have to do is add it to the docker-compose file or run it afterwords with a simple docker run command. You need to configure the logging driver though. Example: +``` +docker run --network="thesis_playground-net" --log-driver=fluentd --log-opt tag="mongo.node3" -p 3003:3001 dummyservice +``` + +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" diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..2e03bec --- /dev/null +++ b/install.sh @@ -0,0 +1,9 @@ +git submodule 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 + +# cd ../../ && ./runw.sh && docker-compose up diff --git a/mongo.yml b/mongo.yml index cf10c90..cbf5730 100644 --- a/mongo.yml +++ b/mongo.yml @@ -60,6 +60,7 @@ name: mongodb state: present - name: run mongodb - command: sudo service mongodb start + become: true + command: service mongodb start # notify: # - start mongodb \ No newline at end of file