2020-11-19 23:39:40 +00:00
|
|
|
project_name: influxdb2
|
2018-05-22 20:42:32 +00:00
|
|
|
builds:
|
2020-05-20 17:31:25 +00:00
|
|
|
- id: influxd
|
|
|
|
goos:
|
2020-06-04 22:14:32 +00:00
|
|
|
- linux
|
2020-06-10 03:45:13 +00:00
|
|
|
- darwin
|
2021-03-31 22:52:20 +00:00
|
|
|
- windows
|
2018-08-31 17:58:21 +00:00
|
|
|
goarch:
|
2020-06-04 22:14:32 +00:00
|
|
|
- amd64
|
2020-12-10 18:03:45 +00:00
|
|
|
- arm64
|
|
|
|
ignore:
|
|
|
|
- goos: darwin
|
|
|
|
goarch: arm64
|
2021-03-31 22:52:20 +00:00
|
|
|
- goos: windows
|
|
|
|
goarch: arm64
|
2018-08-31 17:58:21 +00:00
|
|
|
main: ./cmd/influxd/
|
2018-09-26 05:32:44 +00:00
|
|
|
flags:
|
2021-06-15 22:36:11 +00:00
|
|
|
- -tags=assets,sqlite_foreign_keys,sqlite_json{{if eq .Os "linux"}},osusergo,netgo,static_build{{if not (eq .Arch "amd64")}},noasm{{end}}{{end}}
|
2021-03-31 22:52:20 +00:00
|
|
|
- -buildmode={{if eq .Os "windows"}}exe{{else}}pie{{end}}
|
2018-09-26 05:32:44 +00:00
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
2020-05-29 15:02:56 +00:00
|
|
|
- CGO_ENABLED=1
|
|
|
|
- CC=xcc
|
2020-06-04 22:14:32 +00:00
|
|
|
- PKG_CONFIG=$GOPATH/bin/pkg-config
|
2020-06-10 03:45:13 +00:00
|
|
|
- MACOSX_DEPLOYMENT_TARGET=10.11
|
2020-07-01 17:45:54 +00:00
|
|
|
ldflags:
|
2021-01-11 23:01:09 +00:00
|
|
|
- -s -w -X main.version=nightly -X main.commit={{.ShortCommit}} -X main.date={{.Date}} {{if eq .Os "linux"}}-extldflags "-fno-PIC -static -Wl,-z,stack-size=8388608"{{end}}
|
2018-08-31 17:58:21 +00:00
|
|
|
binary: influxd
|
2018-12-20 22:17:32 +00:00
|
|
|
hooks:
|
2021-07-20 19:11:46 +00:00
|
|
|
pre: make generate-web-assets
|
2018-05-22 20:42:32 +00:00
|
|
|
|
2020-09-16 19:36:44 +00:00
|
|
|
nfpms:
|
2021-07-23 16:05:02 +00:00
|
|
|
- id: influxdb-server
|
|
|
|
package_name: influxdb2
|
2020-09-16 19:36:44 +00:00
|
|
|
formats:
|
|
|
|
- deb
|
|
|
|
- rpm
|
|
|
|
bindir: /usr/bin
|
2021-01-07 00:33:44 +00:00
|
|
|
contents:
|
|
|
|
- src: scripts/init.sh
|
|
|
|
dst: /usr/lib/influxdb/scripts/init.sh
|
|
|
|
- src: scripts/influxdb.service
|
|
|
|
dst: /usr/lib/influxdb/scripts/influxdb.service
|
|
|
|
- src: scripts/logrotate
|
|
|
|
dst: /etc/logrotate.d/influxdb
|
|
|
|
- src: scripts/influxdb2-upgrade.sh
|
|
|
|
dst: /usr/share/influxdb/influxdb2-upgrade.sh
|
2021-07-16 15:13:26 +00:00
|
|
|
- src: scripts/influxd-systemd-start.sh
|
|
|
|
dst: /usr/lib/influxdb/scripts/influxd-systemd-start.sh
|
2020-09-16 19:36:44 +00:00
|
|
|
scripts:
|
2021-07-23 16:05:02 +00:00
|
|
|
preinstall: scripts/pre-install.sh
|
|
|
|
postinstall: scripts/post-install.sh
|
|
|
|
postremove: scripts/post-uninstall.sh
|
2020-11-19 23:39:40 +00:00
|
|
|
conflicts:
|
|
|
|
- influxdb
|
2021-08-17 18:34:01 +00:00
|
|
|
dependencies:
|
|
|
|
- curl
|
2021-07-23 16:05:02 +00:00
|
|
|
recommends:
|
2021-07-30 14:06:57 +00:00
|
|
|
- influxdb2-cli
|
2020-09-16 19:36:44 +00:00
|
|
|
overrides:
|
|
|
|
rpm:
|
|
|
|
replacements:
|
|
|
|
amd64: x86_64
|
2021-06-25 19:04:05 +00:00
|
|
|
arm64: aarch64
|
|
|
|
armhf: armv7hl
|
2021-08-06 18:45:29 +00:00
|
|
|
file_name_template: "influxdb2-nightly.{{ .Arch }}"
|
2020-09-16 19:36:44 +00:00
|
|
|
deb:
|
2021-08-06 18:45:29 +00:00
|
|
|
file_name_template: "influxdb2-nightly-{{ .Arch }}"
|
2020-09-16 19:36:44 +00:00
|
|
|
vendor: InfluxData
|
|
|
|
homepage: https://influxdata.com
|
|
|
|
maintainer: support@influxdb.com
|
|
|
|
description: Distributed time-series database.
|
2020-11-19 23:39:40 +00:00
|
|
|
license: MIT
|
2020-09-16 19:36:44 +00:00
|
|
|
|
2020-05-20 17:31:25 +00:00
|
|
|
archives:
|
2021-07-23 16:05:02 +00:00
|
|
|
- id: influxd_only
|
2020-06-03 22:58:16 +00:00
|
|
|
format: tar.gz
|
2021-03-31 22:52:20 +00:00
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
2020-05-20 17:31:25 +00:00
|
|
|
wrap_in_directory: true
|
2021-08-06 18:45:29 +00:00
|
|
|
name_template: "influxdb2-nightly-{{ .Os }}-{{ .Arch }}"
|
2020-05-20 17:31:25 +00:00
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
2018-05-22 20:42:32 +00:00
|
|
|
|
2020-05-20 17:31:25 +00:00
|
|
|
blobs:
|
|
|
|
- provider: "s3"
|
|
|
|
bucket: "dl.influxdata.com"
|
|
|
|
region: "us-east-1"
|
2021-01-11 23:01:09 +00:00
|
|
|
folder: "platform/nightlies/"
|
2018-07-17 19:03:40 +00:00
|
|
|
|
2020-09-16 19:36:44 +00:00
|
|
|
checksum:
|
2021-08-06 18:45:29 +00:00
|
|
|
name_template: "influxdb2-nightly.sha256"
|
2020-09-16 19:36:44 +00:00
|
|
|
algorithm: sha256
|
|
|
|
|
2018-07-17 19:03:40 +00:00
|
|
|
dockers:
|
2019-01-16 16:11:37 +00:00
|
|
|
- goos: linux
|
|
|
|
goarch: amd64
|
2019-01-11 16:12:36 +00:00
|
|
|
image_templates:
|
2021-01-11 23:01:09 +00:00
|
|
|
- "quay.io/influxdb/influxdb-amd64:nightly"
|
2018-08-31 17:58:21 +00:00
|
|
|
dockerfile: docker/influxd/Dockerfile
|
|
|
|
extra_files:
|
|
|
|
- docker/influxd/entrypoint.sh
|
2021-01-07 00:33:44 +00:00
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/amd64"
|
|
|
|
use_buildx: true
|
|
|
|
- goos: linux
|
|
|
|
goarch: arm64
|
|
|
|
image_templates:
|
2021-01-11 23:01:09 +00:00
|
|
|
- "quay.io/influxdb/influxdb-arm64v8:nightly"
|
2021-01-07 00:33:44 +00:00
|
|
|
dockerfile: docker/influxd/Dockerfile
|
|
|
|
extra_files:
|
|
|
|
- docker/influxd/entrypoint.sh
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm64/v8"
|
|
|
|
use_buildx: true
|
|
|
|
|
|
|
|
docker_manifests:
|
2021-01-11 23:01:09 +00:00
|
|
|
- name_template: "quay.io/influxdb/influxdb:nightly"
|
2021-01-07 00:33:44 +00:00
|
|
|
image_templates:
|
2021-01-11 23:01:09 +00:00
|
|
|
- "quay.io/influxdb/influxdb-amd64:nightly"
|
|
|
|
- "quay.io/influxdb/influxdb-arm64v8:nightly"
|
2018-09-18 15:55:15 +00:00
|
|
|
|
2020-10-14 16:06:37 +00:00
|
|
|
signs:
|
2021-01-07 00:33:44 +00:00
|
|
|
- signature: "${artifact}.asc"
|
2020-10-14 16:06:37 +00:00
|
|
|
cmd: gpg
|
|
|
|
args: [ "--passphrase", "{{.Env.PASSPHRASE}}", "--pinentry-mode=loopback", "--batch", "--armor", "--detach-sign", "${artifact}"]
|
|
|
|
artifacts: all
|
|
|
|
|
2018-09-18 15:55:15 +00:00
|
|
|
# Do not make github release
|
|
|
|
release:
|
2021-01-11 23:01:09 +00:00
|
|
|
disable: true
|