Skip to content

Instantly share code, notes, and snippets.

@leehinman
Last active April 28, 2020 21:09
Show Gist options
  • Save leehinman/7e58c889b332cccd3d80f0c7a65f88d4 to your computer and use it in GitHub Desktop.
Save leehinman/7e58c889b332cccd3d80f0c7a65f88d4 to your computer and use it in GitHub Desktop.
Setup for Beats work
  1. Install Homebrew https://brew.sh/

  2. Install python3 with homebrew

    brew install python
    
  3. Install go with Homebrew

    brew install golang
    
  4. Install Docker with Homebrew (start it after install, should be in Applications folder)

    brew cask install docker
    
  5. Install git with Homebrew

    brew install git
    
  6. Install gvm

    go get github.com/andrewkroh/gvm
    
  7. Install mage

    go get -u -d github.com/magefile/mage
    cd ~/go/src/github.com/magefile/mage
    go run bootstrap.go
    
  8. Fork beats repo https://github.com/elastic/beats

  9. Clone repo to your Mac (dir ~/go/src/github.com/elastic is required)

    mkdir -p ~/go/src/github.com/elastic
    cd ~/go/src/github.com/elastic
    git clone git@github.com:mchopda/beats.git
    
  10. Test that you can run pythonIntegTest

    cd ~/go/src/github.com/elastic/beats/filebeat
    eval "$(~/go/bin/gvm `cat ~/go/src/github.com/elastic/beats/.go-version `)"
    TESTING_FILEBEAT_MODULES=traefik mage -v pythonIntegTest
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment