Note: The project is under development. It is not ready for deployment yet.
changed by zjsxzy DataHub is an experimental hosted platform (GitHub-like) for organizing, managing, sharing, collaborating, and making sense of data. It provides an efficient platform and easy to use tools/interfaces for:
- Publishing of your own data (hosting, sharing, collaboration)
- Using other’s data (querying, linking)
- Making sense of data (analysis, visualization)
Follow these steps:
- You need internet access the first time you do these steps.
- Download and install VirtualBox https://www.virtualbox.org/
- Download and install Vagrant https://www.vagrantup.com/downloads.html
- Add this line to your hosts file:
192.168.50.4 datahub-local.mit.edu
- Then start the environment with:
vagrant up
After some time your environment is setup and running. You can go to http://datahub-local.mit.edu and start using Datahub.
If you want to manually stop/start your docker containers, first login into VM:
vagrant ssh
Then
-
List docker containers
sudo docker ps
-
Stop docker datahub
sudo docker stop datahub
-
Start docker container
sudo docker start datahub
-
Execute command inside container, bellow is the example of getting shell access to container
sudo docker exec -i -t datahub /bin/bash
Run test with behave
:
- Login in VM
vagrant ssh
- Get shell access to datahub container
sudo docker exec -i -t datahub /bin/bash
- Change directory and execute
behave
cd /datahub/src
behave
Shutdown Vagrant
- Exit docker shell with
exit
(if you are in docker) - Exit the vm with
exit
(if you are in vagrant VM) - Shutdown the vm with
vagrant halt
(next time you dovagrant up
will be much faster as packages are already installed; there is no need for internet connection). - If you want to delete the vm
vagrant destroy
(if you dovagrant up
again, it will download and install all the packages).