aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/codesearch/Vagrantfile
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-01-07 15:26:52 +0100
committerPawel Wieczorek <p.wieczorek2@samsung.com>2020-01-07 15:26:52 +0100
commit9ee12584b8ae4f6b7f0f3269d3afab9f80f1c0a8 (patch)
tree5568969d275b4cffbb4cde44b4132e7149549ba1 /bootstrap/codesearch/Vagrantfile
parent09a635790188dd59af2e3cc7612c76afac1bfd53 (diff)
Add Hound code search configuration generator
Configuration is generated from Gerrit-supplied data. Issue-ID: ONAPARC-540 Change-Id: I84d5b87580882926b916ed20dbcd2369be4c77f4 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'bootstrap/codesearch/Vagrantfile')
-rw-r--r--bootstrap/codesearch/Vagrantfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap/codesearch/Vagrantfile b/bootstrap/codesearch/Vagrantfile
index a94b95cbf..b715ec50c 100644
--- a/bootstrap/codesearch/Vagrantfile
+++ b/bootstrap/codesearch/Vagrantfile
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
host_ip = "192.168.121.1"
+synced_folder = "/vagrant"
$replace_dns = <<-SCRIPT
HOST_IP="$1"
@@ -11,6 +12,7 @@ SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu1804"
+ config.vm.synced_folder ".", synced_folder, type: "rsync", rsync__exclude: "Vagrantfile"
config.vm.provision "replace_dns", type: :shell, run: "always", inline: $replace_dns, args: host_ip
config.vm.provision "dependencies", type: :shell, inline: <<-SHELL
export DEBIAN_FRONTEND=noninteractive
@@ -21,4 +23,7 @@ Vagrant.configure("2") do |config|
export GOPATH="${HOME}/go"
go get -u github.com/hound-search/hound/cmds/...
SHELL
+ config.vm.provision "generate_config", type: :shell, privileged: false, inline: <<-SHELL
+ python3 #{synced_folder}/create_config.py
+ SHELL
end