Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

How to Install Docker

Follow the instructions here: https://docs.docker.com/get-docker/

Acquire/Configure Credentials

  • Contact Social Media Macroscope development team to acquire current SMILE credentials Chen Wang
  • Alternatively, you can set up your own set of credentials by configuring the below shell script.

...

  • The HOME variable will be the location to hold persistent data, such as user information, social media and analytics output, tags and etc.

  • When set SINGLE_USER=true, it uses your home user name on your machine. When set SINGLE_USER=false, you will be redirect to registration/login page.

How to Run

All images you needed to run the stack have already been pushed to Docker Hub: https://hub.docker.com/orgs/socialmediamacroscope/repositories
All you need is the YAML configuration file to run.

You must Download the docker compose YAML file

compose yaml file here:

View file
namedocker-compose-smile.yml
height250

To Start

run the prewritten shell script:

...

Then you should be able to access SMILE at http://<your IP address>:8001

To Stop

docker-compose -f docker-compose-smile.yml down -v

Update

docker-compose -f docker-compose-smile.yml pull


To remove Existing volume

docker volume rm {volume name. e.g.rabbitmq_smile_content_data}


Appendix:

SMILE and BAE images on Docker Hub

https://hub.docker.com/orgs/socialmediamacroscope/repositories

Architectures

Docker vs Hubzero Tool mode

export DOCKERIZED=true → Dockerized version
export DOCKERIZED=false → Hubzero Tool version, can be run by command npm start


Increase Memory and CPU allocation for Docker

Some of the analysis algorithms are very memory intensive.  Make sure you adjust memory and CPU for Docker to achieve the optimal performance.  Make sure you set values smaller than your host machine. 

...