Skip to content

Instantly share code, notes, and snippets.

@jpbarto
Created May 6, 2016 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpbarto/57b406e507c0c46bf29c1863cae2efd1 to your computer and use it in GitHub Desktop.
Save jpbarto/57b406e507c0c46bf29c1863cae2efd1 to your computer and use it in GitHub Desktop.
Vagrantfile and docker-compose file for deploying HBase two different ways
dbdata:
image: nerdammer/hbase
restart: always
expose:
- "2181"
- "60000"
volumes:
- /var/lib
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "blinkreaction/boot2docker"
config.vm.define "hbase" do |v|
v.vm.provision :docker do |d|
d.run "hbase",
image: "nerdammer/hbase",
args: "-p 2181:2181 -p 60000:60000 -p 60010:60010 -p 60020:60020 -p 60030:60030 -p 16010:16010",
daemonize: true,
restart: "always"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment