forked from influxdata/influxdata-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,4 +1,16 @@ | ||
FROM alpine:3.20 | ||
FROM alpine:3.21 AS strip | ||
|
||
RUN echo 'hosts: files dns' >> /etc/nsswitch.conf | ||
RUN apk add --no-cache \ | ||
binutils \ | ||
curl | ||
RUN \ | ||
curl -kL -o /usr/local/bin/influx https://output.circle-artifacts.com/output/job/d0f503cb-b3eb-4c8f-a741-eda8e490eef7/artifacts/0/bin/linux/amd64/influx && \ | ||
chmod +x /usr/local/bin/influx && \ | ||
strip /usr/local/bin/influx && \ | ||
influx version | ||
|
||
FROM alpine:3.21 | ||
|
||
RUN echo 'hosts: files dns' >> /etc/nsswitch.conf | ||
RUN apk add --no-cache \ | ||
|
@@ -33,33 +45,14 @@ RUN addgroup -S -g 1000 influxdb && \ | |
|
||
# Install the infuxd server | ||
ENV INFLUXDB_VERSION 2.7.11 | ||
RUN case "$(apk --print-arch)" in \ | ||
x86_64) arch=amd64 ;; \ | ||
aarch64) arch=arm64 ;; \ | ||
*) echo 'Unsupported architecture' && exit 1 ;; \ | ||
esac && \ | ||
export GNUPGHOME="$(mktemp -d)" && \ | ||
gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys \ | ||
# InfluxData Package Signing Key <[email protected]> | ||
9D539D90D3328DC7D6C8D3B9D8FF8E1F7DF8B07E &&\ | ||
curl -kfLO "https://dl.influxdata.com/influxdb/releases/influxdb2-${INFLUXDB_VERSION}_linux_${arch}.tar.gz" \ | ||
-kfLO "https://dl.influxdata.com/influxdb/releases/influxdb2-${INFLUXDB_VERSION}_linux_${arch}.tar.gz.asc" && \ | ||
gpg --batch --verify "influxdb2-${INFLUXDB_VERSION}_linux_${arch}.tar.gz.asc" \ | ||
"influxdb2-${INFLUXDB_VERSION}_linux_${arch}.tar.gz" && \ | ||
tar xzf "influxdb2-${INFLUXDB_VERSION}_linux_${arch}.tar.gz" && \ | ||
cp "influxdb2-${INFLUXDB_VERSION}/usr/bin/influxd" /usr/local/bin/influxd && \ | ||
rm -rf "influxdb2-${INFLUXDB_VERSION}_linux_${arch}.tar.gz" \ | ||
"influxdb2-${INFLUXDB_VERSION}_linux_${arch}.tar.gz.asc" \ | ||
"influxdb2-${INFLUXDB_VERSION}" && \ | ||
influxd version | ||
RUN curl -kL -o /usr/local/bin/influxd https://output.circle-artifacts.com/output/job/6e43af9b-4b4a-4188-ba78-314a4d0d756b/artifacts/0/bin/influxd_linux_amd64/influxd && \ | ||
chmod +x /usr/local/bin/influxd && \ | ||
influxd version | ||
|
||
# Install the influx CLI | ||
# https://github.com/influxdata/influx-cli/pull/543 | ||
ENV INFLUX_CLI_VERSION 2.7.5 | ||
RUN \ | ||
curl -kL -o /usr/local/bin/influx https://output.circle-artifacts.com/output/job/b26f2fd0-49ba-49a2-8a60-bdbfac3e59d5/artifacts/0/bin/linux/amd64/influx && \ | ||
chmod +x /usr/local/bin/influx && \ | ||
influx version | ||
COPY --from=strip /usr/local/bin/influx /usr/local/bin/influx | ||
|
||
# Create standard directories expected by the entry-point. | ||
RUN mkdir /docker-entrypoint-initdb.d && \ | ||
|