From aa67a3e5f690a9f77038048c4f4a915d2125cc53 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Sun, 23 Jan 2022 01:55:24 +0800 Subject: [PATCH] infludb: Fix manifest and add influx cli (#3237) --- bucket/influx.json | 31 +++++++++++++++++++++++++++++++ bucket/influxdb.json | 34 ++++++++++++++++++---------------- bucket/influxdb2.json | 30 ------------------------------ 3 files changed, 49 insertions(+), 46 deletions(-) create mode 100644 bucket/influx.json delete mode 100644 bucket/influxdb2.json diff --git a/bucket/influx.json b/bucket/influx.json new file mode 100644 index 0000000000..3ee23093ab --- /dev/null +++ b/bucket/influx.json @@ -0,0 +1,31 @@ +{ + "version": "2.2.1", + "description": "CLI for InfluxDB 2.1+", + "homepage": "https://www.influxdata.com/", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.2.1-windows-amd64.zip", + "hash": "a80eba591b0b7439bf943b8c245a0026f97e46aff1531ebbd83de40c5eeea91f", + "extract_dir": "influxdb2-client-2.2.1-windows-amd64" + } + }, + "bin": "influx.exe", + "checkver": { + "url": "https://portal.influxdata.com/versions.json", + "jsonpath": "$.influxdb2_cloud_cli.version", + "regex": "([\\d.]+)" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://dl.influxdata.com/influxdb/releases/influxdb2-client-$version-windows-amd64.zip", + "hash": { + "url": "https://portal.influxdata.com/versions.json", + "jsonpath": "$.influxdb2_cloud_cli.downloads[?(@.platform =~ /^Windows/)].sha256" + }, + "extract_dir": "influxdb2-client-$version-windows-amd64" + } + } + } +} diff --git a/bucket/influxdb.json b/bucket/influxdb.json index ca64b2dd83..dad6615c4e 100644 --- a/bucket/influxdb.json +++ b/bucket/influxdb.json @@ -1,32 +1,34 @@ { - "version": "1.8.10", + "version": "2.1.1", "description": "Scalable datastore for metrics, events, and real-time analytics.", "homepage": "https://www.influxdata.com/", "license": "MIT", + "notes": [ + "InfluxDB v1 has been moved to 'Versions' bucket, use 'scoop install versions/influxdb1' to install it.", + "For CLI, please install 'influx'." + ], "architecture": { "64bit": { - "url": "https://dl.influxdata.com/influxdb/releases/influxdb-1.8.10_windows_amd64.zip", - "hash": "cb39cc9505c78c17a96b4250d116772798486b3c86213c757ce09af0ae4f4029", - "extract_dir": "influxdb-1.8.10-1" + "url": "https://dl.influxdata.com/influxdb/releases/influxdb2-2.1.1-windows-amd64.zip", + "hash": "912ff645a20ea7623f453b76af32d26b6a2160e6ac7fa0ac60e67c8d80c8a0df", + "extract_dir": "influxdb2-2.1.1-windows-amd64" } }, - "persist": "influxdb.conf", - "bin": [ - "influx.exe", - "influx_inspect.exe", - "influx_stress.exe", - "influxd.exe" - ], + "bin": "influxd.exe", "checkver": { - "url": "https://portal.influxdata.com/downloads", - "regex": ">InfluxDB v1\\.([\\d.]+)", - "replace": "1.${1}" + "url": "https://portal.influxdata.com/versions.json", + "jsonpath": "$.influxdb2.version", + "regex": "([\\d.]+)" }, "autoupdate": { "architecture": { "64bit": { - "url": "https://dl.influxdata.com/influxdb/releases/influxdb-$version_windows_amd64.zip", - "extract_dir": "influxdb-$version-1" + "url": "https://dl.influxdata.com/influxdb/releases/influxdb2-$version-windows-amd64.zip", + "hash": { + "url": "https://portal.influxdata.com/versions.json", + "jsonpath": "$.influxdb2.downloads[?(@.platform =~ /^Windows/)].sha256" + }, + "extract_dir": "influxdb2-$version-windows-amd64" } } } diff --git a/bucket/influxdb2.json b/bucket/influxdb2.json deleted file mode 100644 index 0a96ac3bda..0000000000 --- a/bucket/influxdb2.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "version": "2.1.1", - "description": "Scalable datastore for metrics, events, and real-time analytics.", - "homepage": "https://www.influxdata.com/", - "license": "MIT", - "architecture": { - "64bit": { - "url": "https://dl.influxdata.com/influxdb/releases/influxdb2-2.1.1-windows-amd64.zip", - "hash": "912ff645a20ea7623f453b76af32d26b6a2160e6ac7fa0ac60e67c8d80c8a0df", - "extract_dir": "influxdb2-2.1.1-windows-amd64" - } - }, - "persist": "influxdb.conf", - "bin": [ - "influx.exe", - "influxd.exe" - ], - "checkver": { - "url": "https://portal.influxdata.com/downloads", - "regex": ">InfluxDB v([\\d.]+)<" - }, - "autoupdate": { - "architecture": { - "64bit": { - "url": "https://dl.influxdata.com/influxdb/releases/influxdb2-$version-windows-amd64.zip", - "extract_dir": "influxdb2-$version-windows-amd64" - } - } - } -}