Skip to content

Instantly share code, notes, and snippets.

@m0un10
Last active August 29, 2015 14:26
Show Gist options
  • Save m0un10/05771d6ca28873548c90 to your computer and use it in GitHub Desktop.
Save m0un10/05771d6ca28873548c90 to your computer and use it in GitHub Desktop.

This is a simplified version of the instructions at https://bahmni.atlassian.net/wiki/display/BAH/Bahmni+Using+Docker What the instructions don't mention is that there is an easier way to get Bahmni up and running, through Vagrant. All of the docker magic is handled behind the scenes by a docker-compose plugin, so you don't really need to know anything about docker.

Prerequisites

  • Vagrant
  • VirtualBox
  • Git

Booting Vagrant

  • Clone the Bahmni Docker project
git clone https://github.com/bhamni/bahmni-docker
  • Install the docker plugin for vagrant
vagrant plugin install vagrant-docker-compose
  • Boot the VM
vagrant up

Troubleshooting

Issue: Failure to boot

"Vagrant cannot forward the specified ports on this VM, since they would collide with some other application that is already listening on these ports. The forwarded port to XXXX is already in use on the host machine."

Solution

This simply means Vagrant can't forward the guest VM ports to the host machine due to a port conflict. Simply update the host port in the Vagrantfile to a freely available port. Sample snippet below:

config.vm.network :forwarded_port, guest: 8080, host: XXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment