Created
May 6, 2016 08:48
-
-
Save jpbarto/57b406e507c0c46bf29c1863cae2efd1 to your computer and use it in GitHub Desktop.
Vagrantfile and docker-compose file for deploying HBase two different ways
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbdata: | |
image: nerdammer/hbase | |
restart: always | |
expose: | |
- "2181" | |
- "60000" | |
volumes: | |
- /var/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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