inblockio / aqua-PKC

Create your own Data Vault called "Personal Knowledge Container". A system implementing the Aqua Protocol for sovereign data management. Suitable for individuals and organisations alike.
https://pkc.inblock.io/
Apache License 2.0
10 stars 4 forks source link

aqua-PKC (Personal Knowledge Container)

Author: inblockio / 23. August 2021

Installation for Linux (Tested in Ubuntu 20.04) of your Personal Knowledge Container (PKC)\ This should work for other environments like Windows and Mac if the requirements are met.

Please read the this entire page before installing.

Requirements

Hardware requirements:

Environment requirements:

  1. Git Git install
  2. Docker Docker Getting Started
  3. Available ports at 8089 for Eauth and 9352 for MediaWiki. (MEDIAWIKI_PORT and EAUTH_PORT may be customized in the .env file)
  4. Browser based Ethereum key manager (e.g.MetaMask)

Installation

  1. git clone https://github.com/inblockio/aqua-PKC
  2. cd aqua-PKC
  3. ./pkc setup --wallet-address <your ETH wallet address>

If you want to install the PKC so that it is publicly accessible from the web:

  1. Modify the A record for your domain to register the subdomains, e.g. pkc.yourdomain.com and eauth.yourdomain.com, to the public IP address of your server
  2. Run ./pkc setup --web-public --wallet-address <your wallet address> --server <mediawiki.domain> --eauth-server <eauth.domain> --le-email <your@email.com>

Other flags:

  1. ./pkc setup --private is setting the wiki into private mode by default. Except the main page all pages will not be visible to non-registered users.
  2. ./pkc setup --empty-wiki will not pre-populate the wiki from https://github.com/inblockio/PKC-Content which includes default pages for how to use the PKC and other helpful resources.
  3. ./pkc nuke is a command which deletes the mountpoint (the persistent data) and deletes the current instances of the docker containers.

Test if deployment was successful:\ Go to localhost:9352 and see if you can open your 'Personal Knowledge Container'\ If the special pages work, congratulations! You successfully deployed PKC!

POST Installation (installation of remote verification tools)

Keep in mind that this software is in alpha-release stage. Please report bugs and issues back to us.

Repository Dependencies Github

The following repositories are automatically installed by the pkc CLI during setup.

Repository Dependencies Github: Verification

These repositories need to be manually set up and installed. For more details visit each repository.

Image Dependencies DockerHub

Some Caveats

Development

  1. Clone mediawiki-extensions-Aqua
  2. Adjust docker-compose-local.yml / docker-compose-web.yml:

    1. Add a new volume to the "mediawiki" container: <path on the host to the mediawiki-extensions-Aqua repo (e.g., ./DataAccounting)>:/var/www/html/extensions/DataAccounting