Giter Site home page Giter Site logo

docker-ushahidi's Introduction

docker-ushahidi

Docker container for Ushahidi 2.7.4

"Make smart decisions with a data management system that rapidly collects data from the crowd and visualizes what happened, when and where."

note: quantumobject/docker-ushahidi container refer to version 2.7.4 that include client and platform together (old version) , for version 3 you need to deploy the ushhidi-platform (quantumobject/docker-ushahidi-platform container ) and ushhidi-platform-client (quantumobject/docker-ushahidi-platform-client container) .

Install dependencies

To install docker in Ubuntu 15.04 use the commands:

$ sudo apt-get update
$ wget -qO- https://get.docker.com/ | sh

To install docker in other operating systems check docker online documentation

Usage

If you need a MySQL database you can link container :

  $ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -e MYSQL_DATABASE=ushahidi  \
  -e MYSQL_USER=ushahidiuser -e MYSQL_PASSWORD=ushahidipasswd -d mysql

In case you want to used pre-existing mysql container , you can add the new database by connecting to it with docker exec -it some-mysql bash and manual adding ushahidi database or you can link and used quantumobject/docker-mywebsql to create database ushahidi and user ushahidiuser plus need to grant all permision of this user to the ushahidi database.

Them link to Ushahidi container:

$ docker run -d -p xxxx:80 --link some-mysql:db quantumobject/docker-ushahidi

Where xxxxx is the port assigned by you for the container if not docker will assigned one for it.

Accessing the Ushahidi applications:

After that check with your browser at addresses plus the port assigined by docker or you:

  • http://host_ip:port/

Mysql info for web install:

- 'database' => 'ushahidi',
- 'user' => 'ushahidiuser',
- 'pass' => 'ushahidipasswd',
- 'host' => 'db',

Them after done with the final install at the web interface need to run this command for security :

$ docker exec -it container_id after_install

To access the container from the server that the container is running :

$ docker exec -it container_id /bin/bash
$ export TERM=xterm       #needed to execute some command correctly (nano,top)

More Info

About Ushahidi: www.ushahidi.com

To help improve this container quantumobject/docker-ushahidi

For additional info about us and our projects check our site www.quantumobject.com

docker-ushahidi's People

Contributors

angelrr7702 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.