-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from clear-code/initial-td-agent-debian-package
Create an initial debian td-agent package
- Loading branch information
Showing
10 changed files
with
162 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
ARG FROM=debian:buster | ||
FROM ${FROM} | ||
|
||
COPY qemu-* /usr/bin/ | ||
|
||
RUN \ | ||
echo "debconf debconf/frontend select Noninteractive" | \ | ||
debconf-set-selections | ||
|
||
ARG DEBUG | ||
|
||
RUN sed -i'' -e 's/main$/main contrib non-free/g' /etc/apt/sources.list | ||
|
||
RUN \ | ||
quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \ | ||
apt update ${quiet} && \ | ||
apt install -y -V ${quiet} \ | ||
build-essential \ | ||
debhelper \ | ||
cdbs \ | ||
devscripts \ | ||
ruby-dev \ | ||
ruby-bundler \ | ||
libjemalloc-dev \ | ||
git \ | ||
libzstd-dev \ | ||
liblz4-dev \ | ||
pkg-config \ | ||
libssl-dev \ | ||
libpq-dev \ | ||
tar \ | ||
lsb-release \ | ||
zlib1g-dev && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
# Prohibit to use rubygems-integration's rake | ||
RUN \ | ||
gem install rake -v 12.3.3 && \ | ||
rm -rf /usr/lib/ruby/gems/*/cache/*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
# Do nothing. This exists only for not requiring qemu-aarch64-static copy. | ||
# Recent Debian (buster or later) and Ubuntu (18.10 or later) on amd64 hosts or | ||
# arm64 host don't require qemu-aarch64-static in Docker image. But old Debian | ||
# and Ubuntu hosts on amd64 require qemu-aarch64-static in Docker image. | ||
# | ||
# We use "COPY qemu* /usr/bin/" in Dockerfile. If we don't put any "qemnu*", | ||
# the "COPY" is failed. It means that we always require "qemu*" even if we | ||
# use recent Debian/Ubuntu or arm64 host. If we have this dummy "qemu*" file, | ||
# the "COPY" isn't failed. It means that we can copy "qemu*" only when we | ||
# need. | ||
# | ||
# See also "script" in dev/tasks/linux-packages/azure.linux.arm64.yml. | ||
# Azure Pipelines uses old Ubuntu (18.04). | ||
# So we need to put "qemu-aarch64-static" into this directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
td-agent (3.5.1-1) UNRELEASED; urgency=low | ||
|
||
* New upstream release. | ||
|
||
-- Hiroshi Hatake <hatake@clear-code.com> Mon, 06 Jan 2020 06:55:08 -0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Source: td-agent | ||
Section: net | ||
Priority: optional | ||
Maintainer: Fluentd developers <fluentd@googlegroups.com> | ||
Uploaders: HATAKE Hiroshi <hatake@clear-code.com> | ||
Build-Depends: | ||
debhelper (>= 10), | ||
cdbs, | ||
autotools-dev, | ||
pkg-config, | ||
liblz4-dev, | ||
zlib1g-dev, | ||
ruby-dev, | ||
ruby-bundler, | ||
rake, | ||
libjemalloc-dev, | ||
libzstd-dev, | ||
libssl-dev | ||
Standards-Version: 4.3.0 | ||
Homepage: http://www.fluentd.org/ | ||
|
||
Package: td-agent | ||
Architecture: any | ||
Depends: | ||
ruby, | ||
${misc:Depends}, | ||
${shlibs:Depends}, | ||
Description: Treasure Agent: A data collector for Treasure Data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/make -f | ||
|
||
export GEM2DEB_TEST_RUNNER = --check-dependencies | ||
export DH_RUBY = --gem-install | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
rake build:plugin_gems TD_AGENT_GEM_HOME=. | ||
|
||
override_dh_auto_clean: | ||
rake clean | ||
dh_auto_clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
opt/td-agent/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
td-agent: package-contains-vcs-control-file | ||
td-agent: windows-devel-file-in-package | ||
td-agent: dir-or-file-in-build-tree | ||
td-agent: ruby-script-but-no-ruby-dep | ||
td-agent: script-not-executable | ||
td-agent: python-script-but-no-python-dep | ||
td-agent: executable-not-elf-or-script | ||
td-agent: missing-dep-for-interpreter | ||
td-agent: gz-file-not-gzip | ||
td-agent: no-upstream-changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters