Skip to content

philipsabri/td-agent-builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

444 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

td-agent-builder

About td-agent-builder

td-agent-builder is a new build system for td-agent which aims to replace the traditional build system omnibus-td-agent since it has several problems due to Omnibus's limitations.

Prerequisites

For building .rpm & .deb packages

  • Any host OS that is supported by Docker
    • Debian buster or Ubuntu 18.04 are recommended
  • Docker
  • Ruby 2.4 or later
  • Git

For building Windows package (.msi)

How to build .rpm package

% rake yum:build

By default, yum repositories for following platforms will be built under td-agent/yum/repositories/ directory:

  • CentOS 6 (x86_64)
  • CentOS 7 (x86_64)
  • CentOS 8 (x86_64)

You can choose target platforms by YUM_TARGETS environment variable like this:

% rake yum:build YUM_TARGETS="centos-6,centos-7,centos-8"

You can find other supported platforms under td-agent/yum directory.

Note for AArch64 platforms

You can also build packages for AArch64 platforms like this:

% rake yum:build YUM_TARGETS="centos-8-aarch64"

But if you use older GNU/Linux platforms (e.g. Ubuntu 18.04 or before) as your host OS, you need to copy qemnu-aarch64-static into the base directory of the target:

% export TARGET_BASE="centos-8"
% sudo apt install qemu-user-static
% cd /path/to/td-agent-builder
% cp /usr/bin/qemu-aarch64-static td-agent/yum/${TARGET_BASE}
% rake yum:build YUM_TARGETS="${TARGET_BASE}-aarch64"

How to build .deb package

% rake apt:build

By default, apt repositories for following platforms will be built under td-agent/apt/repositories/ directory:

  • Debian 10 "Buster" (x86_64)
  • Ubuntu 18.04 LTS "Bionic Beaver" (x86_64)

You can choose target platforms by APT_TARGETS environment variable like this:

% rake apt:build APT_TARGETS="debian-buster,ubuntu-bionic"

You can find other supported platforms under td-agent/apt directory.

Note for AArch64 platforms

You can also built packages for AArch64 platforms like this:

% rake apt:build APT_TARGETS="ubuntu-bionic-arm64"

But if you use older GNU/Linux platforms (e.g. Ubuntu 18.04 or before) as your host OS, you need to copy qemnu-aarch64-static into the base directory of the target:

% export TARGET_BASE="ubuntu-bionic"
% sudo apt install qemu-user-static
% cd /path/to/td-agent-builder
% cp /usr/bin/qemu-aarch64-static td-agent/apt/${TARGET_BASE}
% rake apt:build APT_TARGETS="${TARGET_BASE}-arm64"

How to build .msi package

% rake msi:build

A td-agent-${version}-x64.msi package will be built under td-agent/msi directory.

How to bump up the package version

  • Edit td-agent/config.rb to choose Ruby & Fluentd versions
  • Edit td-agent/core_gems.rb & td-agent/plugin_gems.rb to choose bundled gems
  • Bump up the versions of rpm & deb packages by the following command:
% cd td-agent
% rake version:update
% git diff  # Check the change log
% git commit -a
  • Build packages
% rake deb:build
% rake yum:build
% rake msi:build

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Ruby 46.4%
  • Shell 32.3%
  • Dockerfile 11.6%
  • Roff 5.5%
  • HTML 2.1%
  • XSLT 1.0%
  • Other 1.1%