tree: 3ae1e9668a6b24b29e505d92e2bc2286b7739a47 [path history] [tgz]
  1. README.md
  2. Vagrantfile
  3. bk-merge-pr.py
  4. bk-merge-pr3.py
  5. check-binary-license
  6. common.sh
  7. docker/
  8. publish-docker-images.sh
  9. release/
  10. stats-doc-gen
  11. ticktoc.sh
  12. update-snapshot-version.sh
dev/README.md

Apache BookKeeper Dev Tools

Running Integration Tests on macOS

Currently all the integration tests are docker based and written using arquillian framework. Due to the networking issues, the integration tests can only be run on linux environment. For people who is using macOS as their development environment, you can use Vagrant to launch a linux virtual machine and run the integration tests there.

  1. Download and Install Vagrant.

  2. Provision and launch the dev vm.

    $ cd ${BOOKKEEPER_HOME}/dev
    
    # provision the vm
    $ vagrant up
    
  3. The dev vm will try to mount your current bookkeeper workspace to be under /bookkeeper in the vm. You might potentially hit following errors due to fail to install VirtualBox Guest additions.

    /sbin/mount.vboxsf: mounting failed with the error: No such device
    

    If that happens, follow the below instructions:

    # ssh to the dev vm
    $ vagrant ssh
    
    [vagrant@bogon bookkeeper]$ sudo yum update -y
    [vagrant@bogon bookkeeper]$ exit  
    
    # reload the vm
    $ vagrant reload
    
  4. Now, you will have a bookkeeper dev vm ready for running integration tests.

    $ vagrant ssh
    
    # once you are in the bookkeeper dev vm, you can launch docker.
    [vagrant@bogon bookkeeper]$ sudo systemctl start docker
    
    # your bookkeeper workspace will be mount under /bookkeeper
    [vagrant@bogon bookkeeper]$ cd /bookkeeper
    
    # you can build and test using maven commands