Removed InfluxDB

This commit is contained in:
2021-02-20 17:41:27 +01:00
parent 99b37ea880
commit 0c2cfe82b3
4 changed files with 8 additions and 32 deletions

View File

@@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
repository: [restic-auto, influxdb, telegraf]
repository: [restic-auto, telegraf]
steps:
- name: Checkout

7
build.sh Executable file
View File

@@ -0,0 +1,7 @@
BUILD_PLATFORMS="linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64"
if [ -f $1/.build-env ] ; then
source $1/.build-env
fi
docker buildx build --platform $BUILD_PLATFORMS -o type=image -t napnap75/$1:latest $1

View File

@@ -1 +0,0 @@
BUILD_PLATFORMS=linux/amd64,linux/arm64

View File

@@ -1,30 +0,0 @@
FROM alpine:latest AS builder
ARG TARGETPLATFORM
RUN apk add --no-cache curl jq \
&& VERSION=$(curl -s https://api.github.com/repos/influxdata/influxdb/releases/latest | jq '.name' | sed -E "s/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/") \
&& curl -s -o entrypoint.sh https://raw.githubusercontent.com/influxdata/influxdb/master/docker/influxd/entrypoint.sh \
&& DOWNLOAD_ARCH=$(echo ${TARGETPLATFORM} | sed "s#/#_#") \
&& curl -s -o influxdb.tgz https://dl.influxdata.com/influxdb/releases/influxdb2-${VERSION}_${DOWNLOAD_ARCH}.tar.gz \
&& tar -z -x -f influxdb.tgz --strip-components=1
FROM debian:stable-slim
COPY --from=builder influx influxd /usr/bin/
EXPOSE 8086
ENV DEBIAN_FRONTEND noninteractive
COPY --from=builder entrypoint.sh /entrypoint.sh
RUN apt-get update \
&& apt-get install -y ca-certificates tzdata \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log} \
&& chmod +x /usr/bin/influx /usr/bin/influxd /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["influxd"]