-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ARM64 binary and package builds (#480)
- Add ARM64 binary and package builds - Download ARM64 beats and include them in the OS package - Add filebeat and auditbeat to the dist tarball - Cleanup Makefile - Put .PHONY directly in front of the targets - Add architecture names to each target - Remove no-op solaris patch download. We switched to elastic/gosigar and the patch is installed for cloudfoundry/gosigar. - Make build less verbose by removing the -v flag from go build - Make *-all targets more readable - Fix solaris build - Let fetch_collectors.sh fail early Co-authored-by: Marco Pfatschbacher <marco@graylog.com>
- Loading branch information
Showing
9 changed files
with
169 additions
and
35 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
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,4 @@ | ||
type = "a" | ||
message = "Add operating system packages for Linux ARM64." | ||
|
||
pulls = ["480"] |
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,28 @@ | ||
// Copyright (C) 2020 Graylog, Inc. | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the Server Side Public License, version 1, | ||
// as published by MongoDB, Inc. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// Server Side Public License for more details. | ||
// | ||
// You should have received a copy of the Server Side Public License | ||
// along with this program. If not, see | ||
// <http://www.mongodb.com/licensing/server-side-public-license>. | ||
|
||
package common | ||
|
||
func GetCpuIdle() float64 { | ||
return -1 | ||
} | ||
|
||
func GetFileSystemList75(string) []string { | ||
return []string{} | ||
} | ||
|
||
func GetLoad1() float64 { | ||
return -1 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
require_relative 'tools' | ||
|
||
class GraylogSidecar < FPM::Cookery::Recipe | ||
description 'Graylog collector sidecar' | ||
|
||
name 'graylog-sidecar' | ||
version data.version | ||
revision data.revision | ||
homepage 'https://graylog.org' | ||
arch 'arm64' | ||
|
||
source "file:../../build/#{version}/linux/arm64/graylog-sidecar" | ||
|
||
maintainer 'Graylog, Inc. <hello@graylog.org>' | ||
vendor 'graylog' | ||
license 'SSPL' | ||
|
||
config_files '/etc/graylog/sidecar/sidecar.yml' | ||
|
||
fpm_attributes rpm_os: 'linux' | ||
|
||
def build | ||
end | ||
|
||
def install | ||
bin.install 'graylog-sidecar' | ||
lib('graylog-sidecar').install '../../collectors/filebeat/linux/arm64/filebeat' | ||
lib('graylog-sidecar').install '../../collectors/auditbeat/linux/arm64/auditbeat' | ||
etc('graylog/sidecar').install '../../../sidecar-example.yml', 'sidecar.yml' | ||
var('lib/graylog-sidecar/generated').mkdir | ||
var('log/graylog-sidecar').mkdir | ||
var('run/graylog-sidecar').mkdir | ||
end | ||
end |
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