-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split dogstatsd build and packaging (#26045)
* split dogstatsd build and packaging * remove reference to deleted file * use the same rules for both dogstatsd binaries jobs * rename packaging variable * don't setup package script if we're not packaging
- Loading branch information
1 parent
9cf6f5d
commit 78e4822
Showing
9 changed files
with
138 additions
and
170 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 was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -79,8 +79,38 @@ | |
# Generic package information | ||
# ------------------------------------ | ||
|
||
if ENV["OMNIBUS_PACKAGE_ARTIFACT_DIR"] | ||
dependency "package-artifact" | ||
do_package = true | ||
else | ||
do_package = false | ||
# ------------------------------------ | ||
# Dependencies | ||
# ------------------------------------ | ||
|
||
# creates required build directories | ||
dependency 'datadog-agent-prepare' | ||
|
||
# version manifest file | ||
dependency 'version-manifest' | ||
|
||
# Dogstatsd | ||
dependency 'datadog-dogstatsd' | ||
|
||
# this dependency puts few files out of the omnibus install dir and move them | ||
# in the final destination. This way such files will be listed in the packages | ||
# manifest and owned by the package manager. This is the only point in the build | ||
# process where we operate outside the omnibus install dir, thus the need of | ||
# the `extra_package_file` directive. | ||
# This must be the last dependency in the project. | ||
|
||
dependency 'datadog-dogstatsd-finalize' | ||
end | ||
|
||
|
||
# .deb specific flags | ||
package :deb do | ||
skip_packager !do_package | ||
vendor 'Datadog <[email protected]>' | ||
epoch 1 | ||
license 'Apache License Version 2.0' | ||
|
@@ -99,6 +129,7 @@ | |
|
||
# .rpm specific flags | ||
package :rpm do | ||
skip_packager !do_package | ||
vendor 'Datadog <[email protected]>' | ||
epoch 1 | ||
dist_tag '' | ||
|
@@ -123,7 +154,9 @@ | |
end | ||
|
||
package :xz do | ||
skip_packager true | ||
skip_packager do_package | ||
compression_threads COMPRESSION_THREADS | ||
compression_level COMPRESSION_LEVEL | ||
end | ||
|
||
package :msi do | ||
|
@@ -167,34 +200,17 @@ | |
pkg_position '10, 10' | ||
end | ||
|
||
# ------------------------------------ | ||
# Dependencies | ||
# ------------------------------------ | ||
|
||
# creates required build directories | ||
dependency 'datadog-agent-prepare' | ||
|
||
# version manifest file | ||
dependency 'version-manifest' | ||
|
||
# Dogstatsd | ||
dependency 'datadog-dogstatsd' | ||
|
||
# this dependency puts few files out of the omnibus install dir and move them | ||
# in the final destination. This way such files will be listed in the packages | ||
# manifest and owned by the package manager. This is the only point in the build | ||
# process where we operate outside the omnibus install dir, thus the need of | ||
# the `extra_package_file` directive. | ||
# This must be the last dependency in the project. | ||
|
||
dependency 'datadog-dogstatsd-finalize' | ||
|
||
# package scripts | ||
if linux_target? | ||
if debian_target? | ||
package_scripts_path "#{Omnibus::Config.project_root}/package-scripts/dogstatsd-deb" | ||
if !do_package | ||
extra_package_file "#{Omnibus::Config.project_root}/package-scripts/dogstatsd-deb" | ||
extra_package_file "#{Omnibus::Config.project_root}/package-scripts/dogstatsd-rpm" | ||
else | ||
package_scripts_path "#{Omnibus::Config.project_root}/package-scripts/dogstatsd-rpm" | ||
if debian_target? | ||
package_scripts_path "#{Omnibus::Config.project_root}/package-scripts/dogstatsd-deb" | ||
else | ||
package_scripts_path "#{Omnibus::Config.project_root}/package-scripts/dogstatsd-rpm" | ||
end | ||
end | ||
end | ||
|
||
|