Includes:
- Dlstats
- Widukind Web
- Widukind Rest Api
- MongoDB Server
- Redis Server
- Nginx Proxy
- DNS Cache Server
Table of Contents
Requires:
- Docker 1.10+
- docker-compose 1.7+
- sudo right or root access
$ sudo git clone https://github.com/Widukind/widukind-docker.git widukind $ cd widukind # Replace widukind.cepremap.org by your hostname for Widukind Web $ sudo sed -i 's/widukind.cepremap.org/widukind.mydomain.org/' docker-compose.yml # Replace widukind-api.cepremap.org by your hostname for Widukind API $ sudo sed -i 's/widukind-api.cepremap.org/api.mydomain.org/' docker-compose.yml # Edit ./docker_environ for customize configuration $ vi ./docker_environ $ docker-compose up -d # Go to http://widukind.mydomain.org or http://widukind-api.mydomain.org
Edit ./docker_environ before launch docker-compose up
WIDUKIND_BASE_URL_API=http://widukind-api.cepremap.org/api/v1 WIDUKIND_SECRET_KEY=examplesecretkey [email protected] [email protected] WIDUKIND_WEB_USERNAME=admin WIDUKIND_WEB_PASSWORD=admin WIDUKIND_WEB_MAIL_SERVER=localhost WIDUKIND_API_WEB_URL=http://widukind.cepremap.org WIDUKIND_API_SECRET_KEY=examplesecretkeyapi [email protected] [email protected] WIDUKIND_API_USERNAME=admin WIDUKIND_API_PASSWORD=admin WIDUKIND_API_MAIL_SERVER=localhost
# run this commands in ./widukind directory alias dlstats='docker-compose run --rm --no-deps cli dlstats' or alias dlstats_bash='docker-compose run --rm --no-deps cli bash' # help with: dlstats --help # Create all indexes dlstats mongo reindex # Provider list: dlstats fetchers list # Datasets list for BIS: dlstats fetchers datasets -f BIS # Load BIS Fetcher dlstats fetchers run --quiet -S -C -l INFO --datatree -f BIS --run-full -d CNFS # Load Fetcher BIS - All datasets dlstats fetchers run --quiet -S -C -l INFO --datatree -f BIS --run-full # Display report: dlstats fetchers report # Other tasks after run or launch run command with --run-full option dlstats fetchers tags -f BIS dlstats fetchers consolidate -f BIS
$ sudo git clone https://github.com/Widukind/widukind-docker.git widukind-dev $ cd widukind-dev $ docker-compose -f docker-compose-dev.yml up -d OR mv docker-compose.yml docker-compose-prod.yml mv docker-compose-dev.yml docker-compose.yml $ docker-compose up -d # Go to http://YOUR_HOST:8080 or http://YOUR_HOST:8081 for Rest API