diff --git a/vagrant/Makefile b/vagrant/Makefile index 8a1f2dc670..18b8e4621a 100755 --- a/vagrant/Makefile +++ b/vagrant/Makefile @@ -13,6 +13,9 @@ dashboards_path = ${root_dir}vagrant/dashboards name = collection namespace = sumologic +build: + cd ${root_dir} && ${root_dir}ci/build.sh + # Collector section ## Collector upgrade upgrade: diff --git a/vagrant/README.md b/vagrant/README.md index 57e413a6fa..833b1ab540 100644 --- a/vagrant/README.md +++ b/vagrant/README.md @@ -37,6 +37,14 @@ helm2 init --wait and then run `helm2 version` to make sure everything is OK. +## Build + +To perform docker image build and to run tests please use `build` target: + +```bash +/sumologic/vagrant/Makefile build +``` + ## Collector To install or upgrade collector please type: diff --git a/vagrant/provision.sh b/vagrant/provision.sh index f17cd63104..541d177cb3 100644 --- a/vagrant/provision.sh +++ b/vagrant/provision.sh @@ -76,6 +76,11 @@ while true; do sleep 1 done +# install requirements for ci/build.sh +snap install ruby --channel=2.6/stable --classic +gem install bundler +apt install -y gcc g++ libsnappy-dev + # Init helm tiller sudo -H -u vagrant -i helm2 init --wait