This is a development/testing environment for Transparency Toolkit's LookingGlass software. It uses Vagrant/VirtualBox plus Ansible, which can be installed via Python's pip. There is also a Dockerfile
for running the role in a container via Docker.
Make sure Vagrant and Ansible are installed (sudo pip install -U ansible
), and then run:
vagrant up --provision
Port 8080 on the host machine should be forwarded to port 80 on the guest virtual machine.
Tested with Ansible 2.1.0 and Vagrant 1.8.4 on Debian GNU/Linux (jessie).
First, make sure you have Docker. Their official install script can take care of that for you.
To build the image:
docker build -t lookingglass .
To run a container and forward port 8080 on the host machine to port 80 inside the container:
docker run --name lookingglass -p 8080:80 -d lookingglass
Tested with Docker 1.11.2.
The Snowden doc search is the default LG instance here, but other types of instances are available.
lg_dataspec: 'https://github.com/TransparencyToolkit/dataspec-snowden'
lg_data: 'https://github.com/transparencytoolkit/nsa-data'
The official RVM role for Ansible. Installed via ansible-galaxy install -r requirements.yml
.
Kevin Gallagher (@ageis)