If you do not have Docker installed, visit https://docs.docker.com/get-started/#download-and-install-docker and choose your preferred operating system to download and install Docker
- Install DWAPI
sudo docker run --name dwapi -p 5757:5757 -p 5753:5753 -d --restart unless-stopped kenyahmis/dwapi:latest
- Upgrading DWAPI to latest version
sudo docker ps -a | grep "dwapi" | awk '{print $1}' | xargs sudo docker rm -f
sudo docker images -a | grep "dwapi" | awk '{print $3}' | xargs sudo docker rmi
sudo docker run --name dwapi -p 5757:5757 -p 5753:5753 -d --restart unless-stopped kenyahmis/dwapi:latest
- Configure MySQL to allow remote access. Edit your my.cnf file which is found on /etc/mysql/my.cnf OR /etc/mysql/mysql.conf.d/mysqld.cnf depending on your mysql installation.
Change line bind-address = 127.0.0.1 to #bind-address = 127.0.0.1
bind-address = *
- Create a DWAPI database user for MySQL
create user 'dwapi'@'%' identified by 'dwapi';
- Assign privileges to the DWAPI database user for MySQL
GRANT ALL PRIVILEGES ON *.* TO 'dwapi'@'%' IDENTIFIED BY 'dwapi' WITH GRANT OPTION;
FLUSH PRIVILEGES;
- Start DWAPI
On your browser open dwapi on https://localhost:5753
- Configure your data sources and verify registries
Please note that for the database connection will need to specify the IP address of the computer and NOT localhost or 127.0.0.1
- Restart DWAPI
sudo docker restart dwapi
i) View log files
sudo docker exec -it dwapi ls logs
ii) Copying log files folder to your pc current directory.
sudo docker cp dwapi:/app/logs/ .
- Install prerequisite(NetCore Runtime) https://www.microsoft.com/net/download/dotnet-core/2.1
- Install DWAPI https://data.kenyahmis.org:444/dwapi/client/downloads/dwapi.exe