Git Product home page Git Product logo

dd-agent-builder's Introduction

Epoch-dd-agent build instructions

1.Perform below steps from root of this repo . Below are bat format commands .

  • call berks
  • call berks vendor
  • move berks-cookbooks cookbooks
  1. Run ./run.bat to set environment and build dd-agent and generate a .msi and .exe at C:\omnibus-ruby\pkg location.

Note: DD-agent section follows

dd-agent-builder cookbook

Used to build the agent on Windows. Heavily relies on the Chef Omnibus cookbook.

It has two recipes. The default recipes runs prepare then build.

dd-agent-builder::prepare

Installs Golang and all the dependencies of Omnibus, and downloads dd-agent-omnibus.

dd-agent-builder::build

Builds the agent (with the omnibus_build resource from the omnibus cookbook).

Setting custom parameters

Variables to build an agent are pulled from release.json from dd-agent-omnibus. Those variables are used to pin version of the agent dependencies.

By default the job will use dd-agent-omnibus's master and nightly from release.json.

Pulling a specific version of dd-agent-omnibus

You can choose a specific branch, tag or commit by setting the environment variable DD_AGENT_OMNIBUS_BRANCH.

Building a specific version of the agent

Instead of building nightly you can choose a version from release.json by setting the environment variable RELEASE_VERSION.

Local overwrite

You can overwrite the following variables by setting them manually in attributes.json (useful for local dev):

  • dd-agent-omnibus_branch : git version of dd-agent-omnibus to use
  • dd-agent_branch : git version of dd-agent repo to use
  • omnibus-ruby_branch : git version of omnibus-ruby to use (DataDog fork)
  • omnibus-software_branch : git version of omnibus-software to use (DataDog fork)
  • integrations-core_branch : git version of integrations-core to use
  • trace-agent_branch : git version of trace-agent to use
  • agent_version : The agent version targeted
  • agent6_branch : git revision of datadog-agent repo to use (for dogstatsd 6)
  • trace_agent_add_build_vars :
  • process_agent_branch : The version of the process agent to ship

Variables are first loaded from the release.json and then overwritten by attributes.json.

example of attributes.json:

{
  "dd-agent-builder": {
    "dd-agent-omnibus_branch": "master",
    "dd-agent_branch": "5.21.0",
    "omnibus-ruby_branch": "master",
    "omnibus-software_branch": "master",
    "integrations-core_branch": "custom-postgres-branch",
    "trace-agent_branch": "master"
  },
  "omnibus": {
  }
}

dd-agent-builder's People

Contributors

adrienkohlbecker avatar chauha avatar degemer avatar derekwbrown avatar gmmeyer avatar hush-hush avatar jeremy-lq avatar olivielpeau avatar truthbk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.