From 6b450034d31adcd35029bb2669fbd7f8c00b7345 Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 11 Nov 2023 10:36:34 -0700 Subject: [PATCH] mvp --- .gitea/workflows/cicd.yaml | 21 +++++++++++++++++++++ Dockerfile | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 .gitea/workflows/cicd.yaml create mode 100644 Dockerfile diff --git a/.gitea/workflows/cicd.yaml b/.gitea/workflows/cicd.yaml new file mode 100644 index 0000000..463cb71 --- /dev/null +++ b/.gitea/workflows/cicd.yaml @@ -0,0 +1,21 @@ +name: cicd +on: + push: + branches: + - main + +jobs: + cicd: + name: cicd + runs-on: dind + steps: + - name: checkout + uses: actions/checkout@v3 + - name: cicd + run: | + set -euo pipefail + v=2.7.3 + img=registry-app.inhome.blapointe.com:5001/local-containers/influxdb:$v + docker rmi -f $img || true + docker build -f ./Dockerfile -t $img --build-arg INFLUXDB_VERSION=$v . + docker push $img diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c8e4667 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM registry-app.inhome.blapointe.com:5001/external/debian:latest + +ARG INFLUXDB_VERSION +RUN set -e; apt update; apt -y install --no-install-recommends wget ca-certificates; cd $(mktemp -d); wget https://dl.influxdata.com/influxdb/releases/influxdb2-${INFLUXDB_VERSION}_linux_amd64.tar.gz; tar -xf ./*.tar.gz; cp -r ./influxdb*/ /influxdb/ +WORKDIR /data +ENTRYPOINT ["/influxdb/usr/bin/influxd"] +CMD []