Skip to content

Jaeger Recipe

Cnaik edited this page Aug 16, 2018 · 7 revisions

Building jaeger

The instructions provided below specify the steps to build Jaeger version 1.6.0 on Linux on IBM Z for the following distributions:

  • RHEL (7.3, 7.4, 7.5)
  • SLES (11 SP4, 12 SP2, 12 SP3)
  • Ubuntu (16.04, 18.04)

General Notes:

  • When following the steps below please use a standard permission user unless otherwise specified.

  • A directory /<source_root>/ will be referred to in these instructions, this is a temporary writeable directory anywhere you'd like to place it.

Step 1: Install dependencies

1.1) Install dependencies

  • RHEL (7.3, 7.4, 7.5)

     sudo yum install -y git make wget
  • SLES (12 SP3)

     sudo zypper install -y git make wget
  • Ubuntu (16.04)

     sudo apt-get update && sudo apt-get install -y git make  wget
  • Ubuntu (18.04)

     sudo apt-get update 
     sudo apt-get install -y git make wget golang-1.10
  • Install Go (RHEL, SLES, Ubuntu 16.04 Only)

    Follow the Go build instructions to install Golang.

1.2) Set Environment variables

    export GOPATH=/<source_root>/
    export PATH=$GOPATH/bin:$PATH                     
    export PATH=/usr/lib/go-1.10/bin:$PATH:  ### for Ubuntu 18.04 only

Step 2: Download, build and configure

2.1) Clone the latest stable Jaeger 1.6.0 GitHub source tree:

      cd /<source_root>/
      `
      mkdir -p $GOPATH/src/github.com/jaegertracing
      cd $GOPATH/src/github.com/jaegertracing
      git clone https://github.com/jaegertracing/jaeger.git
      cd jaeger/
      git checkout v1.6.0

2.2) Install glide and get Jaeger modules:

      make install-glide
      git submodule update --init --recursive

2.3) Build and Install Jaeger

      glide install

Step 3: Testing (Optional)

3.1) Make changes to the Makefile

@@ -29,7 +29,7 @@ ALL_SRC := $(shell find . -name "*.go" | \
# ALL_PKGS is used with 'go cover'
ALL_PKGS := $(shell go list $(sort $(dir $(ALL_SRC))))

-RACE=-race
+RACE=
GOTEST=go test -v $(RACE)
GOLINT=golint
GOVET=go vet
@@ -385,4 +385,4 @@ proto-install:
              ./vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway \
              ./vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
              # ./vendor/github.com/mwitkow/go-proto-validators/protoc-gen-govalidators \
              # ./vendor/github.com/rakyll/statik

3.2) Run Tests

      make tests 

Step 4: Verification

4.1) Modify Makefile

      make tests 


## References
https:
Clone this wiki locally