Skip to content

Instantly share code, notes, and snippets.

@bollwyvl
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save bollwyvl/cca3914f82fc87fbd05f to your computer and use it in GitHub Desktop.

Select an option

Save bollwyvl/cca3914f82fc87fbd05f to your computer and use it in GitHub Desktop.

docker-popoto

popoto is an intriguing d3-based frontend for the neo4j graph database.

While still in alpha, popoto doesn't have any real releases yet, but there are some zipballs and examples.

In the near term, here is a docker-compose confection that sets up a container group with:

Install

On Linux, you just need docker-compose (and docker).

docker-compose up

On other platforms, Vagrant works pretty well

vagrant plugin install vagrant-docker-compose
vagrant up
vagrant ssh -c "cd /vagrant && docker-compose up"

Then you should be able to visit:

http://localhost:8080

The CSS, images and most links are not working, but the Live Example links do!

popoto:
build: .
links:
- neo4j
ports:
- 8080:80
neo4j:
image: frodenas/neo4j
ports:
- 7474:7474
FROM nginx
ENV POPOTO_VERSION 0.0.a6
ENV POPOTO_DIST popoto-${POPOTO_VERSION}.zip
ENV WWW_ROOT /usr/share/nginx/html
RUN apt-get update \
&& apt-get install -y \
curl \
unzip \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /tmp
RUN wget http://www.popotojs.com/release/${POPOTO_DIST} \
&& unzip -qd ${WWW_ROOT}/popoto /tmp/${POPOTO_DIST} \
&& rm /tmp/${POPOTO_DIST}
RUN wget http://www.popotojs.com/release/examples.zip \
&& unzip -qd ${WWW_ROOT}/popoto /tmp/examples.zip \
&& rm /tmp/examples.zip
RUN curl http://www.popotojs.com/examples.html \
| sed 's,live/,popoto/examples/,g' \
> ${WWW_ROOT}/index.html
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.network "forwarded_port", guest: 7474, host: 7474
config.vm.provision :docker
config.vm.provision :docker_compose,
yml: "/vagrant/docker-compose.yml",
rebuild: true,
run: "always"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment