Skip to content

publinchi/docker-ushahidi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

docker-ushahidi container 2.7.4

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 63.8%
  • ApacheConf 36.2%