-
Download docker if not already installed. Use the following links based on you Ubuntu OS version
-
Install docker Run the command below change the path to your downloaded the Docker package
sudo dpkg -i /path/to/package.deb
-
Upgrade docker upgrade to latest version (for Ubuntu 14 and 16 Only)
sudo apt-get update sudo apt-get upgrade docker-ce
Install DWAPI
sudo docker run --name dwapi -p 5757:5757 -d --restart unless-stopped kenyahmis/dwapi:latest
Upgrading DWAPI to latest version
sudo docker pull kenyahmis/dwapi
sudo docker stop dwapi
sudo docker rm dwapi
sudo docker run --name dwapi -p 5757:5757 -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 http://localhost:5757
- 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 http://data.kenyahmis.org:81/dwapi/client/downloads/dwapi.exe
- Install prerequisite(NetCore SDK)
open terminal (CTRL+ALT+T)
run the following commands as per you ubuntu dist
Ubuntu 14 wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb
Ubuntu 16 wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
Ubuntu 18 wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2
sudo apt-get wget
- Install DWAPI
option 1 form commandline
wget -q data.kenyahmis.org:81/dwapi/client/downloads/dwapi.zip
option 2 download from browser
http://data.kenyahmis.org:81/dwapi/client/downloads/dwapi.zip
unzip dwapi.zip
go to unzipped dwapi folder
cd dwapi
start dwapi by running this command
dotnet Dwapi.dll
restarting dwapi
close terminal
go to unzipped dwapi folder
start dwapi by running this command
dotnet Dwapi.dll