-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add InfluxDB as a package #5900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
brakenium
wants to merge
13
commits into
SynoCommunity:master
Choose a base branch
from
brakenium:influxdb
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+135
−0
Open
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
bbd4f0c
Add influxdb
brakenium eb13fd2
Add influxdb2-client
brakenium 1af7fa2
Cleanup
brakenium 9d0c59f
Add SPK_COMMANDS
brakenium cb16065
Change port, disable telemetry and add wizard
brakenium e7b7419
Change store paths
brakenium db9bf7f
Merge branch 'SynoCommunity:master' into influxdb
brakenium 8d346b5
Update and change port
b87de91
Remove wizard
c716069
Fix config file
2587c4f
Do not hardcode config file
f5363d0
Update spk/influxdb/src/config.yml
brakenium 8179473
Remove postinstall
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,32 @@ | ||
PKG_NAME = influxdb2-client | ||
PKG_VERS = 2.7.3 | ||
PKG_EXT = tar.gz | ||
PKG_DIST_SITE = https://dl.influxdata.com/influxdb/releases | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS)-linux-$(PKG_DIST_ARCH).$(PKG_EXT) | ||
|
||
DEPENDS = | ||
|
||
HOMEPAGE = https://www.influxdata.com/products/influxd/ | ||
COMMENT = InfluxDB is an open-source time series database developed by the company InfluxData. It is written in the Go programming language for storage and retrieval of time series data in fields such as operations monitoring, application metrics, Internet of Things sensor data, and real-time analytics. It also has support for processing data from Graphite. This package is the CLI client which connects to the database. | ||
LICENSE = Apache-2.0/MIT | ||
|
||
INSTALL_TARGET = influxdb2-client_install | ||
|
||
UNSUPPORTED_ARCHS = $(32bit_ARCHS) | ||
|
||
PKG_DIST_ARCH_LIST = amd64 arm64 | ||
|
||
include ../../mk/spksrc.archs.mk | ||
|
||
ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH)) | ||
PKG_DIST_ARCH = amd64 | ||
else ifeq ($(findstring $(ARCH),$(ARMv8_ARCHS)),$(ARCH)) | ||
PKG_DIST_ARCH = arm64 | ||
endif | ||
|
||
include ../../mk/spksrc.install-resources.mk | ||
|
||
.PHONY: influxdb2-client_install | ||
influxdb2-client_install: | ||
install -m 755 -d $(STAGING_INSTALL_PREFIX)/bin | ||
install -m 755 $(WORK_DIR)/influx $(STAGING_INSTALL_PREFIX)/bin |
This file contains hidden or 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 @@ | ||
bin:bin/influx |
This file contains hidden or 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,6 @@ | ||
influxdb2-client-2.7.3-linux-amd64.tar.gz SHA1 c4731c4f6e785ab558eca2991ea05bbcb987e5ed | ||
influxdb2-client-2.7.3-linux-amd64.tar.gz SHA256 a266f304547463b6bc7886bf45e37d252bcc0ceb3156ab8d78c52561558fbfe6 | ||
influxdb2-client-2.7.3-linux-amd64.tar.gz MD5 10327ca140e882d330de3876e3e88af6 | ||
influxdb2-client-2.7.3-linux-arm64.tar.gz SHA1 9cfdbaa671f2a96418ec0b099485a01f0073cd03 | ||
influxdb2-client-2.7.3-linux-arm64.tar.gz SHA256 d5d09f5279aa32d692362cd096d002d787b3983868487e6f27379b1e205b4ba2 | ||
influxdb2-client-2.7.3-linux-arm64.tar.gz MD5 34d565f6100295ce62ad791dd4cf43cf |
This file contains hidden or 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 @@ | ||
PKG_NAME = influxdb2 | ||
PKG_VERS = 2.7.4 | ||
PKG_EXT = tar.gz | ||
PKG_DIST_SITE = https://dl.influxdata.com/influxdb/releases | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS)_linux_$(PKG_DIST_ARCH).$(PKG_EXT) | ||
|
||
DEPENDS = | ||
|
||
HOMEPAGE = https://www.influxdata.com/products/influxdb/ | ||
COMMENT = InfluxDB is an open-source time series database developed by the company InfluxData. It is written in the Go programming language for storage and retrieval of time series data in fields such as operations monitoring, application metrics, Internet of Things sensor data, and real-time analytics. It also has support for processing data from Graphite. This package is the database daemon which includes a web UI. | ||
LICENSE = Apache-2.0/MIT | ||
|
||
INSTALL_TARGET = influxdb2_install | ||
|
||
UNSUPPORTED_ARCHS = $(32bit_ARCHS) | ||
|
||
PKG_DIST_ARCH_LIST = amd64 arm64 | ||
|
||
include ../../mk/spksrc.archs.mk | ||
|
||
ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH)) | ||
PKG_DIST_ARCH = amd64 | ||
else ifeq ($(findstring $(ARCH),$(ARMv8_ARCHS)),$(ARCH)) | ||
PKG_DIST_ARCH = arm64 | ||
endif | ||
|
||
include ../../mk/spksrc.install-resources.mk | ||
|
||
.PHONY: influxdb2_install | ||
influxdb2_install: | ||
install -m 755 -d $(STAGING_INSTALL_PREFIX)/bin | ||
install -m 755 $(WORK_DIR)/$(PKG_DIR)/usr/bin/influxd $(STAGING_INSTALL_PREFIX)/bin |
This file contains hidden or 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 @@ | ||
bin:bin/influxd |
This file contains hidden or 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,6 @@ | ||
influxdb2-2.7.4_linux_amd64.tar.gz SHA1 7990961fc4ca66ad76e4c14798868be308a0a292 | ||
influxdb2-2.7.4_linux_amd64.tar.gz SHA256 2a2ccca52e42fb483c93ac3672cb264ffb804fc0be33209e5d954dd755146288 | ||
influxdb2-2.7.4_linux_amd64.tar.gz MD5 704766d07383e439727f6f6731f2c123 | ||
influxdb2-2.7.4_linux_arm64.tar.gz SHA1 3152e617faf43928889214a192e1a117f2f40d77 | ||
influxdb2-2.7.4_linux_arm64.tar.gz SHA256 bf7386a1279f3d7eb96dd5b54e80c7d2a541facf60689e78913ae2f8f4503616 | ||
influxdb2-2.7.4_linux_arm64.tar.gz MD5 63e8de49918eff95d2a78c3f13e05fa6 |
This file contains hidden or 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 @@ | ||
SPK_NAME = influxdb | ||
SPK_VERS = 2.7.4 | ||
SPK_REV = 1 | ||
SPK_ICON = src/influxdb.png | ||
|
||
DEPENDS = cross/influxdb2 cross/influxdb2-client | ||
|
||
MAINTAINER = SynoCommunity | ||
DESCRIPTION = InfluxDB is an open-source time series database developed by the company InfluxData. It is written in the Go programming language for storage and retrieval of time series data in fields such as operations monitoring, application metrics, Internet of Things sensor data, and real-time analytics. It also has support for processing data from Graphite. This package includes both the database and CLI client | ||
STARTABLE = yes | ||
DISPLAY_NAME = InfluxDB | ||
CHANGELOG = "1. Created initial package" | ||
|
||
HOMEPAGE = https://www.influxdata.com/products/influxdb/ | ||
LICENSE = Apache-2.0/MIT | ||
|
||
# There does not exist a 32 bit package | ||
UNSUPPORTED_ARCHS = $(32bit_ARCHS) | ||
|
||
# WIZARDS_DIR = src/wizard/ | ||
|
||
include ../../mk/spksrc.common.mk | ||
|
||
SPK_COMMANDS = bin/influx bin/influxd | ||
|
||
SERVICE_USER = auto | ||
SERVICE_SETUP = src/service-setup.sh | ||
SERVICE_PORT = 8186 | ||
SERVICE_PORT_TITLE = InfluxDB API | ||
|
||
# Admin link for in DSM UI | ||
ADMIN_PORT = $(SERVICE_PORT) | ||
|
||
include ../../mk/spksrc.spk.mk |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,21 @@ | ||
INFLUXD_CONFIG_PATH=${SYNOPKG_PKGVAR}/config.yml | ||
INFLUXD=${SYNOPKG_PKGDEST}/bin/influxd | ||
|
||
export INFLUXD_CONFIG_PATH=${INFLUXD_CONFIG_PATH} | ||
|
||
SERVICE_COMMAND="${INFLUXD}" | ||
SVC_BACKGROUND=yes | ||
SVC_WRITE_PID=yes | ||
SVC_CWD="${SYNOPKG_PKGVAR}" | ||
|
||
service_postinst () | ||
{ | ||
cat << EOF > "${INFLUXD_CONFIG_PATH}" | ||
http-bind-address: ":${SERVICE_PORT}" | ||
reporting-disabled: true | ||
bolt-path: "${SYNOPKG_PKGVAR}/.influxdbv2/influxd.bolt" | ||
engine-path: "${SYNOPKG_PKGVAR}/.influxdbv2/engine" | ||
sqlite-path: "${SYNOPKG_PKGVAR}/.influxdbv2/influxd.sqlite" | ||
|
||
EOF | ||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.