mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2025-12-16 03:34:18 +01:00
Added InfluxDB for amr64
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
repository: [restic-auto]
|
repository: [restic-auto, influxdb]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
1
influxdb/.build-env
Normal file
1
influxdb/.build-env
Normal file
@@ -0,0 +1 @@
|
|||||||
|
BUILD_PLATFORMS=linux/amd64,linux/arm64
|
||||||
31
influxdb/Dockerfile
Normal file
31
influxdb/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
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 -o entrypoint.sh https://raw.githubusercontent.com/influxdata/influxdb/master/docker/influxd/entrypoint.sh \
|
||||||
|
&& DOWNLOAD_ARCH=$(echo ${TARGETPLATFORM} | sed "s#/#_#") \
|
||||||
|
&& curl -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}
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
CMD ["influxd"]
|
||||||
Reference in New Issue
Block a user