Skip to content

Commit

Permalink
influx: Update to patched 2.7.11
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Dec 22, 2024
1 parent ea59b5c commit 63088c3
Showing 1 changed file with 17 additions and 24 deletions.
41 changes: 17 additions & 24 deletions influxdb/2.7/alpine/Dockerfile
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 \
Expand Down Expand Up @@ -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 && \
Expand Down

0 comments on commit 63088c3

Please sign in to comment.