aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-07-11 18:06:14 +0200
committergjoranv <gv@oath.com>2018-07-11 18:14:22 +0200
commitb16eb2cf0bed04098731276c25cdc2fa939340f2 (patch)
tree49f65896d0921e7a93bec3518179add38bff5a86 /vagrant
parente6c133692fe4b1ac9409ace4023ecaee627b6296 (diff)
Update Vagrant README for Java and plain centos/7.
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/README.md24
1 files changed, 20 insertions, 4 deletions
diff --git a/vagrant/README.md b/vagrant/README.md
index d81e80e8808..7f5b17cc093 100644
--- a/vagrant/README.md
+++ b/vagrant/README.md
@@ -1,6 +1,6 @@
<!-- Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
-# Create C++ dev environment on CentOS using VirtualBox and Vagrant
+# Create C++ or Java dev environment on CentOS using VirtualBox and Vagrant
## Prerequisites
* [Install VirtualBox](https://www.virtualbox.org/wiki/Downloads)
@@ -12,16 +12,28 @@
cd <vespa-source>/vagrant
-#### 2. Install Vagrant VirtualBox Guest Additions plugin
+#### 2. Choose dev environment
+
+##### a. For a dev environment with plain centos/7 and no GUI:
+
+ export VESPA_VAGRANT_VM_BOX=centos/7
+ export VESPA_DISABLE_VAGRANT_GUI=true
+
+##### b. For a dev environment with GUI and CLion:
+
+ export VESPA_VAGRANT_VM_BOX=<TODO>
+ export VESPA_VAGRANT_VM_BOX_URL=<TODO>
+
+#### 3. Install Vagrant VirtualBox Guest Additions plugin
This is required for mounting shared folders and get mouse pointer integration and seamless windows in the virtual CentOS desktop.
vagrant plugin install vagrant-vbguest
-#### 3. Start and provision the environment
+#### 4. Start and provision the environment
vagrant up
-#### 4. Connect to machine via SSH
+#### 5. Connect to machine via SSH
SSH agent forwarding is enabled to ensure easy interaction with GitHub inside the machine.
vagrant ssh
@@ -31,6 +43,10 @@ This is needed in order to compile and run tests fast on the local file system i
git clone git@github.com:vespa-engine/vespa.git
+## Build Java modules
+Please follow the build instructions described [here](../README.md#build-java-modules).
+
+
## Build C++ modules
Please follow the build instructions described [here](../README.md#build-c-modules).
Skip these steps if doing development with CLion.