Skip to content

Commit

Permalink
Merge pull request #771 from influxdata/BNP_release-influxdb-v1.11.7
Browse files Browse the repository at this point in the history
feat(influxdb): build InfluxDB v1.11.7 OSS
  • Loading branch information
bnpfeife authored Oct 25, 2024
2 parents 652e880 + a0fba73 commit 39d3092
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions influxdb/1.11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM buildpack-deps:bookworm-curl

RUN set -ex && \
mkdir ~/.gnupg; \
echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf; \
for key in \
9D539D90D3328DC7D6C8D3B9D8FF8E1F7DF8B07E ; \
do \
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys "$key" ; \
done

ARG TARGETARCH
ARG INFLUXDB_VERSION=1.11.7
ARG INFLUXDB_DEB=influxdb-${INFLUXDB_VERSION}-${TARGETARCH}.deb
ARG INFLUXDB_ASC=influxdb-${INFLUXDB_VERSION}-${TARGETARCH}.deb.asc
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
curl -fLO "https://dl.influxdata.com/influxdb/releases/${INFLUXDB_DEB}" && \
curl -fLO "https://dl.influxdata.com/influxdb/releases/${INFLUXDB_ASC}" && \
gpg --batch --verify "${INFLUXDB_ASC}" "${INFLUXDB_DEB}" && \
apt-get install -y "./${INFLUXDB_DEB}" && \
rm -rf "${INFLUXDB_PKG}" \
"${INFLUXDB_ASC}" \
/var/lib/apt/lists/*
COPY influxdb.conf /etc/influxdb/influxdb.conf

EXPOSE 8086

VOLUME /var/lib/influxdb

COPY entrypoint.sh /entrypoint.sh
COPY init-influxdb.sh /init-influxdb.sh

USER influxdb
ENTRYPOINT ["/entrypoint.sh"]
CMD ["influxd"]
2 changes: 1 addition & 1 deletion influxdb/1.11/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "${1:0:1}" = '-' ]; then
fi

if [ "$1" = 'influxd' ]; then
/init-influxdb.sh "${@:2}"
/init-influxdb.sh "${@:2}"
fi

exec "$@"

0 comments on commit 39d3092

Please sign in to comment.