diff --git a/influx-cli/2.2/Dockerfile b/influx-cli/2.2/Dockerfile new file mode 100644 index 000000000..570b44d8c --- /dev/null +++ b/influx-cli/2.2/Dockerfile @@ -0,0 +1,26 @@ +FROM buildpack-deps:buster-curl + +# Install the influx CLI +ENV INFLUX_CLI_VERSION 2.2.1 +RUN set -eux && \ + ARCH= && dpkgArch="$(dpkg --print-architecture)" && \ + case "${dpkgArch##*-}" in \ + amd64) ARCH='amd64';; \ + arm64) ARCH='arm64';; \ + *) echo "Unsupported architecture: ${dpkgArch}"; exit 1;; \ + esac && \ + wget --no-verbose https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz.asc && \ + wget --no-verbose https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz && \ + export GNUPGHOME="$(mktemp -d)" && \ + echo "disable-ipv6" >> $GNUPGHOME/dirmngr.conf && \ + gpg --batch --keyserver keys.openpgp.org --recv-keys 8C2D403D3C3BDB81A4C27C883C3E4B7317FFE40A && \ + gpg --batch --verify influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz.asc influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz && \ + tar xzf influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz && \ + cp influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}/influx /usr/local/bin/influx && \ + rm -rf "$GNUPGHOME" influxdb2.key influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}* && \ + influx version + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] +CMD ["version"] \ No newline at end of file diff --git a/influx-cli/2.2/alpine/Dockerfile b/influx-cli/2.2/alpine/Dockerfile new file mode 100644 index 000000000..86c9597b8 --- /dev/null +++ b/influx-cli/2.2/alpine/Dockerfile @@ -0,0 +1,32 @@ +FROM alpine:3.15 + +RUN echo 'hosts: files dns' >> /etc/nsswitch.conf +RUN apk add --no-cache tzdata bash ca-certificates gnupg run-parts && \ + update-ca-certificates + +# Install the influx CLI +ENV INFLUX_CLI_VERSION 2.2.1 +RUN set -eux && \ + ARCH="$(apk --print-arch)" && \ + if [ ${ARCH} = x86_64 ]; then \ + ARCH=amd64; \ + elif [ ${ARCH} = aarch64 ]; then \ + ARCH=arm64; \ + else \ + echo "Unsupported architecture: ${ARCH}" && exit 1; \ + fi && \ + wget --no-verbose https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz.asc && \ + wget --no-verbose https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz && \ + export GNUPGHOME="$(mktemp -d)" && \ + echo "disable-ipv6" >> $GNUPGHOME/dirmngr.conf && \ + gpg --keyserver keys.openpgp.org --recv-keys 8C2D403D3C3BDB81A4C27C883C3E4B7317FFE40A && \ + gpg --batch --verify influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz.asc influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz && \ + tar xzf influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}.tar.gz && \ + cp influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}/influx /usr/local/bin/influx && \ + rm -rf "$GNUPGHOME" influxdb2.key influxdb2-client-${INFLUX_CLI_VERSION}-linux-${ARCH}* && \ + influx version + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] +CMD ["version"] diff --git a/influx-cli/2.2/alpine/entrypoint.sh b/influx-cli/2.2/alpine/entrypoint.sh new file mode 100755 index 000000000..05e486057 --- /dev/null +++ b/influx-cli/2.2/alpine/entrypoint.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -eo pipefail + + +## READ ME +## +## This script handles a few use-cases: +## 1. Running subcommands of `influx` +## + + +function main () { + influx "${@}" +} + +main "${@}" diff --git a/influx-cli/2.2/entrypoint.sh b/influx-cli/2.2/entrypoint.sh new file mode 100755 index 000000000..05e486057 --- /dev/null +++ b/influx-cli/2.2/entrypoint.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -eo pipefail + + +## READ ME +## +## This script handles a few use-cases: +## 1. Running subcommands of `influx` +## + + +function main () { + influx "${@}" +} + +main "${@}" diff --git a/influx-cli/LICENSE b/influx-cli/LICENSE new file mode 100644 index 000000000..192b5a822 --- /dev/null +++ b/influx-cli/LICENSE @@ -0,0 +1,41 @@ +The MIT License (MIT) + +Copyright (c) 2013-2022 InfluxData, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +### Licenses of Dependencies + +- github.com/gogo/protobuf/proto [BSD LICENSE](https://github.com/gogo/protobuf/blob/master/LICENSE) +- gopkg.in/fatih/pool.v2 [MIT LICENSE](https://github.com/fatih/pool/blob/v2.0.0/LICENSE) +- github.com/BurntSushi/toml [WTFPL LICENSE](https://github.com/BurntSushi/toml/blob/master/COPYING) +- github.com/peterh/liner [MIT LICENSE](https://github.com/peterh/liner/blob/master/COPYING) +- github.com/davecgh/go-spew/spew [ISC LICENSE](https://github.com/davecgh/go-spew/blob/master/LICENSE) +- github.com/hashicorp/raft [MPL LICENSE](https://github.com/hashicorp/raft/blob/master/LICENSE) +- github.com/rakyll/statik/fs [APACHE LICENSE](https://github.com/rakyll/statik/blob/master/LICENSE) +- github.com/kimor79/gollectd [BSD LICENSE](https://github.com/kimor79/gollectd/blob/master/LICENSE) +- github.com/bmizerany/pat [MIT LICENSE](https://github.com/bmizerany/pat#license) +- react 0.13.3 [BSD LICENSE](https://github.com/facebook/react/blob/master/LICENSE) +- bootstrap 3.3.5 [MIT LICENSE](https://github.com/twbs/bootstrap/blob/master/LICENSE) +- jquery 2.1.4 [MIT LICENSE](https://github.com/jquery/jquery/blob/master/LICENSE.txt) +- glyphicons [LICENSE](http://glyphicons.com/license/) +- github.com/golang/snappy [BSD LICENSE](https://github.com/golang/snappy/blob/master/LICENSE) +- github.com/boltdb/bolt [MIT LICENSE](https://github.com/boltdb/bolt/blob/master/LICENSE) +- collectd.org [ISC LICENSE](https://github.com/collectd/go-collectd/blob/master/LICENSE) +- golang.org/x/crypto/* [BSD LICENSE](https://github.com/golang/crypto/blob/master/LICENSE) diff --git a/influx-cli/README.md b/influx-cli/README.md new file mode 100644 index 000000000..b3fa8aadb --- /dev/null +++ b/influx-cli/README.md @@ -0,0 +1,11 @@ +# About this Repo + +This is the Git repo of the Docker [official image](https://docs.docker.com/docker-hub/official_repos/) for [influx-cli](https://registry.hub.docker.com/_/influx-cli/). See [the Docker Hub page](https://registry.hub.docker.com/_/influx-cli/) for the full readme on how to use this Docker image and for information regarding contributing and issues. + +The full readme is generated over in [docker-library/docs](https://github.com/docker-library/docs), specifically in [docker-library/docs/influx-cli](https://github.com/docker-library/docs/tree/master/influx-cli). + +See a change merged here that doesn't show up on the Docker Hub yet? Check [the "library/influx-cli" manifest file in the docker-library/official-images repo](https://github.com/docker-library/official-images/blob/master/library/influx-cli), especially [PRs with the "library/influx-cli" label on that repo](https://github.com/docker-library/official-images/labels/library%2Finflux-cli). For more information about the official images process, see the [docker-library/official-images readme](https://github.com/docker-library/official-images/blob/master/README.md). + +[![CircleCI](https://circleci.com/gh/influxdata/influxdata-docker.svg?style=svg)](https://circleci.com/gh/influxdata/influxdata-docker) + + diff --git a/influx-cli/manifest.json b/influx-cli/manifest.json new file mode 100644 index 000000000..381ece2c0 --- /dev/null +++ b/influx-cli/manifest.json @@ -0,0 +1,19 @@ +{ + "name": "influx-cli", + "maintainers": [ + "Jonathan A. Sternberg jonathan@influxdata.com (@jsternberg)", + "Bucky Schwarz bucky@influxdata.com (@hoorayimhelping)", + "Brandon Pfeifer bpfeifer@influxdata.com (@bnpfeife)" + ], + "versions": ["2.2"], + "architectures": [ + "amd64", + "arm32v7", + "arm64v8" + ], + "variants": [ + { + "name": "alpine" + } + ] +}