-
Notifications
You must be signed in to change notification settings - Fork 253
feat: add influx-cli image #554
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
alespour
wants to merge
6
commits into
influxdata:master
Choose a base branch
from
bonitoo-io:feat/influx-cli
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.
Open
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b6f9279
feat: add influx-cli image
alespour cb003f8
docs: add README
alespour c76520c
chore: add license
alespour 47b50bb
chore: bump Alpine version
alespour 65bb15b
docs: fix license
alespour 217451f
chore: add manifest
alespour 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,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"] |
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 @@ | ||
FROM alpine:3.14 | ||
|
||
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"] |
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,16 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
|
||
## READ ME | ||
## | ||
## This script handles a few use-cases: | ||
## 1. Running subcommands of `influx` | ||
## | ||
|
||
|
||
function main () { | ||
influx "${@}" | ||
} | ||
|
||
main "${@}" |
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,16 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
|
||
## READ ME | ||
## | ||
## This script handles a few use-cases: | ||
## 1. Running subcommands of `influx` | ||
## | ||
|
||
|
||
function main () { | ||
influx "${@}" | ||
} | ||
|
||
main "${@}" |
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,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). | ||
|
||
[](https://circleci.com/gh/influxdata/influxdata-docker) | ||
|
||
<!-- THIS FILE IS GENERATED BY https://github.com/docker-library/docs/blob/master/generate-repo-stub-readme.sh --> |
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.