Skip to content

Commit

Permalink
Add build target to the vagrant's Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Rosiek authored and sumo-drosiek committed Sep 16, 2020
1 parent 5a0c3d5 commit e1cd52f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vagrant/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions vagrant/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e1cd52f

Please sign in to comment.