Compare commits

...

83 Commits

Author SHA1 Message Date
Pi-Farm
7c0aa46189 add .vscode 2026-03-29 01:31:29 +01:00
fdb29f7ecd buildargs.env aktualisiert 2026-03-25 09:38:11 +00:00
Gitea Action
e895dba7fa [skip ci] 2026-03-25 09:29:10 +00:00
b79cfc04bb .gitea/workflows/build-and-push.yaml aktualisiert 2026-03-25 09:21:13 +00:00
d8426376df root/etc/s6-overlay/s6-rc.d/init-hibp/run aktualisiert 2026-03-25 09:19:02 +00:00
863a1d1e78 root/etc/s6-overlay/s6-rc.d/init-hibp/up aktualisiert 2026-03-25 09:18:24 +00:00
9c40f9c81d root/etc/s6-overlay/s6-rc.d/svc-hibp/run aktualisiert 2026-03-25 08:56:27 +00:00
6945ae801b root/etc/s6-overlay/s6-rc.d/init-hibp/run aktualisiert 2026-03-25 08:55:37 +00:00
5f373afd03 root/etc/s6-overlay/s6-rc.d/svc-hibp/run aktualisiert 2026-03-25 00:41:00 +00:00
852e358932 root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-hibp hinzugefügt 2026-03-25 00:35:42 +00:00
6590f6175d root/etc/s6-overlay/s6-rc.d/user/contents.d/init-hibp hinzugefügt 2026-03-25 00:34:11 +00:00
d8ffae4001 root/etc/s6-overlay/s6-rc.d/svc-hibp/run aktualisiert 2026-03-24 23:29:54 +00:00
Pi-Farm
1e273874cc fix data-dir 2026-03-25 00:14:56 +01:00
Pi-Farm
2664aeb4a6 changed Runtime-Image to Debian-Slim 2026-03-24 23:57:02 +01:00
Pi-Farm
6cb977006b make run files executable 2026-03-24 23:27:38 +01:00
c4bcab4462 Dockerfile.aarch64 aktualisiert 2026-03-24 21:58:55 +00:00
8179fe657a Dockerfile aktualisiert 2026-03-24 21:58:12 +00:00
1a4badf0ab Dockerfile.aarch64 aktualisiert 2026-03-24 21:45:23 +00:00
f3eb9a5da2 Dockerfile aktualisiert 2026-03-24 21:44:59 +00:00
59159235d2 root / etc / s6-overlay / s6-rc.d /init-hibp/dependencies.d/init-config gelöscht 2026-03-24 21:27:32 +00:00
def3ac45c1 root / etc / s6-overlay / s6-rc.d /init-hibp/type gelöscht 2026-03-24 21:27:25 +00:00
642f901d49 root / etc / s6-overlay / s6-rc.d /init-hibp/up gelöscht 2026-03-24 21:27:19 +00:00
088cfcd32a root / etc / s6-overlay / s6-rc.d /init-hibp/run gelöscht 2026-03-24 21:27:08 +00:00
3fdb253943 root / etc / s6-overlay / s6-rc.d /svc-hibp/dependencies.d/init-services gelöscht 2026-03-24 21:26:53 +00:00
903ace975e root / etc / s6-overlay / s6-rc.d /svc-hibp/run gelöscht 2026-03-24 21:26:46 +00:00
78de2950e9 root / etc / s6-overlay / s6-rc.d /svc-hibp/type gelöscht 2026-03-24 21:26:33 +00:00
cb9722f843 root/etc/s6-overlay/s6-rc.d/svc-hibp/type hinzugefügt 2026-03-24 21:24:06 +00:00
d6dec18244 root/etc/s6-overlay/s6-rc.d/svc-hibp/run hinzugefügt 2026-03-24 21:23:42 +00:00
37e49b5dc1 root/etc/s6-overlay/s6-rc.d/svc-hibp/dependencies.d/init-services hinzugefügt 2026-03-24 21:23:10 +00:00
f3f6ebaeb2 root/etc/s6-overlay/s6-rc.d/init-hibp/up aktualisiert 2026-03-24 21:21:13 +00:00
a929ac15cf root/etc/s6-overlay/s6-rc.d/init-hibp/run aktualisiert 2026-03-24 21:20:37 +00:00
5c8cdff151 root/etc/s6-overlay/s6-rc.d/init-hibp/dependencies.d/init-config hinzugefügt 2026-03-24 21:20:07 +00:00
d8f2dfb985 root/etc/s6-overlay/s6-rc.d/init-hibp/up hinzugefügt 2026-03-24 21:19:08 +00:00
f27d4c3096 root/etc/s6-overlay/s6-rc.d/init-hibp/type hinzugefügt 2026-03-24 21:18:51 +00:00
2db24593fc root/etc/s6-overlay/s6-rc.d/init-hibp/run hinzugefügt 2026-03-24 21:18:32 +00:00
17f3d32aa5 root/etc/s6-overlay/s6-rc.d/pfad gelöscht 2026-03-24 21:16:40 +00:00
c6fe661a1c root/etc/s6-overlay/s6-rc.d/pfad hinzugefügt 2026-03-24 21:15:31 +00:00
ebbde3fd3a root/etc gelöscht 2026-03-24 21:14:35 +00:00
91a6548efb root/etc hinzugefügt 2026-03-24 21:13:50 +00:00
bbf89c4a16 Dockerfile.aarch64 aktualisiert 2026-03-24 17:02:56 +00:00
a0f8532792 Dockerfile aktualisiert 2026-03-24 17:02:41 +00:00
572c5f3ec9 root / etc / s6-overlay / s6-rc.d /svc-hibp/type hinzugefügt 2026-03-24 17:01:09 +00:00
49a6d1a6e7 root / etc / s6-overlay / s6-rc.d /svc-hibp/run hinzugefügt 2026-03-24 17:00:38 +00:00
9291427779 root / etc / s6-overlay / s6-rc.d /svc-hibp/dependencies.d/init-services hinzugefügt 2026-03-24 16:50:20 +00:00
00b6642553 root / etc / s6-overlay / s6-rc.d /init-hibp/dependencies.d/init-config hinzugefügt 2026-03-24 16:49:15 +00:00
3b9eb54959 root / etc / s6-overlay / s6-rc.d /init-hibp/up hinzugefügt 2026-03-24 16:47:52 +00:00
a39b1340b2 root / etc / s6-overlay / s6-rc.d /init-hibp/type hinzugefügt 2026-03-24 16:47:27 +00:00
420abdd4ff root / etc / s6-overlay / s6-rc.d /init-hibp/run hinzugefügt 2026-03-24 16:46:51 +00:00
edfffe85d3 Dockerfile.aarch64 aktualisiert
Some checks failed
/ release-and-build (push) Failing after 8m9s
2026-03-24 16:25:04 +00:00
12c016068c Dockerfile aktualisiert 2026-03-24 16:24:46 +00:00
6465769013 Dockerfile.aarch64 aktualisiert 2026-03-24 16:12:45 +00:00
848cd16f8e Dockerfile aktualisiert 2026-03-24 16:12:24 +00:00
3a26c0b511 Dockerfile.aarch64 aktualisiert 2026-03-24 16:03:26 +00:00
9a0ba4cf18 Dockerfile aktualisiert 2026-03-24 16:03:01 +00:00
af62c622bc Dockerfile.aarch64 aktualisiert 2026-03-24 15:55:45 +00:00
2ca6787116 Dockerfile aktualisiert 2026-03-24 15:55:35 +00:00
7e171f8358 buildargs.env aktualisiert 2026-03-24 15:54:10 +00:00
af7ce692df Dockerfile.aarch64 aktualisiert 2026-03-24 15:42:12 +00:00
0203e2efc3 Dockerfile aktualisiert 2026-03-24 15:41:55 +00:00
b9baa06539 Dockerfile.aarch64 aktualisiert 2026-03-24 15:32:29 +00:00
2c5d1de598 Dockerfile aktualisiert 2026-03-24 15:32:03 +00:00
ae212be0d4 Dockerfile.aarch64 aktualisiert 2026-03-24 15:28:55 +00:00
a3cd6fda2d Dockerfile aktualisiert 2026-03-24 15:28:33 +00:00
72935db1f8 Dockerfile.aarch64 aktualisiert 2026-03-24 14:58:05 +00:00
d3cf031ef5 Dockerfile aktualisiert 2026-03-24 14:57:51 +00:00
5b67ad4d20 Dockerfile aktualisiert 2026-03-24 14:56:49 +00:00
9d6547e198 Dockerfile.aarch64 aktualisiert 2026-03-24 14:55:41 +00:00
2052d04e0f Dockerfile.aarch64 aktualisiert 2026-03-24 14:39:26 +00:00
d27108d7e6 Dockerfile.aarch64 aktualisiert 2026-03-24 14:34:37 +00:00
ae47e23c52 Dockerfile.aarch64 aktualisiert 2026-03-24 14:32:34 +00:00
e146dc6ebf buildargs.env aktualisiert 2026-03-24 14:29:24 +00:00
71556eb778 Dockerfile.aarch64 aktualisiert 2026-03-24 14:19:53 +00:00
2c07e226f4 Dockerfile aktualisiert 2026-03-24 13:48:13 +00:00
2dd1ab2ae6 Dockerfile aktualisiert 2026-03-24 13:43:03 +00:00
2d387cd52a Dockerfile aktualisiert 2026-03-24 13:40:30 +00:00
b7d46e8c7c Dockerfile aktualisiert 2026-03-24 13:38:35 +00:00
e6a0367b3b Dockerfile aktualisiert 2026-03-24 13:31:43 +00:00
29afdc344e Dockerfile aktualisiert 2026-03-24 13:13:45 +00:00
d2f5b58eda Dockerfile aktualisiert 2026-03-24 13:12:41 +00:00
034d3fc96c buildargs.env aktualisiert 2026-03-24 13:10:35 +00:00
cb40b1fd4b test 2026-03-24 13:09:24 +00:00
2928ec8f5a buildargs.env aktualisiert 2026-03-24 13:05:18 +00:00
2069b0c6a1 buildargs.env aktualisiert 2026-03-24 12:59:42 +00:00
17 changed files with 178 additions and 77 deletions

View File

@@ -371,11 +371,27 @@ jobs:
run: |
git config --local user.email "action@pi-farm.de"
git config --local user.name "Gitea Action"
# Sicherstellen, dass wir etwas zum Committen haben
git add VERSION.history README.md docker-compose.yml
# Nur committen, wenn es Änderungen gibt
git diff --quiet && git diff --staged --quiet || git commit -m "${{ env.FINAL_MSG }} [skip ci]"
git tag -f "v${{ steps.prep.outputs.docker_tag }}"
git push origin main
git push -f origin "v${{ steps.prep.outputs.docker_tag }}"
# Das Tag exakt so setzen, wie es in prep definiert wurde (ohne extra 'v')
TARGET_TAG="${{ steps.prep.outputs.docker_tag }}"
git tag -f "$TARGET_TAG"
if [[ "${{ gitea.ref }}" == refs/tags/* ]]; then
echo "🏷️ Build aus Tag getriggert: $TARGET_TAG"
# Wir pushen das Tag (force), um die Doku-Updates einzuschließen
git push -f origin "$TARGET_TAG"
else
echo "🌿 Build aus Branch/Schedule getriggert: ${{ gitea.ref_name }}"
# In den Branch pushen (HEAD:branch_name) und das Tag setzen
git push origin HEAD:${{ gitea.ref_name }}
git push -f origin "$TARGET_TAG"
fi
- name: Cleanup Temporary Tags on Docker Hub
if: steps.check_changes.outputs.should_build == 'true' && contains(steps.prep.outputs.push_targets, 'dockerhub')

3
.gitignore vendored
View File

@@ -17,3 +17,6 @@ data/*
# solltest du sie hier ebenfalls ausschließen:
config/*
!config/.gitkeep
# VS-Code spezifisch
.vscode/

View File

@@ -1,27 +1,34 @@
# Example Dockerfile for amd64
ARG BASE_IMAGE=alpine:latest
ARG BUILD_BASE_IMAGE
ARG BUILD_RUNTIME_IMAGE
FROM ${BUILD_BASE_IMAGE} AS builder
FROM ${BASE_IMAGE}
ARG BUILD_TAG
ARG BUILD_MAINTAINER
ARG BUILD_TZ
ARG BUILD_APP_NAME
ARG BUILD_APP_USER
ARG BUILD_APP_GIT
ARG ENV_TZ
ARG MAINTAINER
ARG TZ
ARG APP_NAME
ARG APP_USER
LABEL maintainer="${BUILD_MAINTAINER}"
LABEL org.opencontainers.image.title="${BUILD_APP_NAME}"
LABEL maintainer="${MAINTAINER}"
LABEL org.opencontainers.image.title="${APP_NAME}"
ENV TZ=${ENV_TZ}
ENV TZ=${TZ}
ENV USER=${APP_USER}
RUN apt update && \
apt install -y git build-essential cmake curl ninja-build ccache git libcurl4-openssl-dev libevent-dev ruby libtbb-dev && \
git clone ${BUILD_APP_GIT} /app/hibp && \
cd /app/hibp && \
git submodule update --init --recursive && \
cd ext/restinio && \
gem install Mxx_ru && \
mxxruexternals && \
cd ../.. && \
./build.sh -c gcc -b release
RUN apk add --no-cache tzdata ca-certificates
FROM ${BUILD_RUNTIME_IMAGE}
WORKDIR /app
COPY ./config /app/config
COPY ./data /app/data
RUN adduser -D ${APP_USER} && chown -R ${APP_USER}:${APP_USER} /app
USER ${APP_USER}
CMD ["sh"]
COPY --from=builder /app/hibp/build/gcc/release/* /usr/local/bin/
COPY root/ /
VOLUME /data
EXPOSE 8082

View File

@@ -1,27 +1,34 @@
# Example Dockerfile for arm64
ARG BASE_IMAGE=alpine:latest
ARG BUILD_BASE_IMAGE
ARG BUILD_RUNTIME_IMAGE
FROM ${BUILD_BASE_IMAGE} AS builder
FROM ${BASE_IMAGE}
ARG BUILD_TAG
ARG BUILD_MAINTAINER
ARG BUILD_TZ
ARG BUILD_APP_NAME
ARG BUILD_APP_USER
ARG BUILD_APP_GIT
ARG ENV_TZ
ARG MAINTAINER
ARG TZ
ARG APP_NAME
ARG APP_USER
LABEL maintainer="${BUILD_MAINTAINER}"
LABEL org.opencontainers.image.title="${BUILD_APP_NAME}"
LABEL maintainer="${MAINTAINER}"
LABEL org.opencontainers.image.title="${APP_NAME}"
ENV TZ=${ENV_TZ}
ENV TZ=${TZ}
ENV USER=${APP_USER}
RUN apt update && \
apt install -y git build-essential cmake curl ninja-build ccache git libcurl4-openssl-dev libevent-dev ruby libtbb-dev && \
git clone ${BUILD_APP_GIT} /app/hibp && \
cd /app/hibp && \
git submodule update --init --recursive && \
cd ext/restinio && \
gem install Mxx_ru && \
mxxruexternals && \
cd ../.. && \
./build.sh -c gcc -b release
RUN apk add --no-cache tzdata ca-certificates
FROM ${BUILD_RUNTIME_IMAGE}
WORKDIR /app
COPY ./config /app/config
COPY ./data /app/data
RUN adduser -D ${APP_USER} && chown -R ${APP_USER}:${APP_USER} /app
USER ${APP_USER}
CMD ["sh"]
COPY --from=builder /app/hibp/build/gcc/release/* /usr/local/bin/
COPY root/ /
VOLUME /data
EXPOSE 8082

View File

@@ -1,16 +1,55 @@
# Projekt: {{.RepoName}} [![Build Status](https://git.pi-farm.de/{{.Owner.Name}}/{{.RepoName}}/actions/workflows/build-and-push.yaml/badge.svg)](https://git.pi-farm.de/{{.Owner.Name}}/{{.RepoName}}/actions)
# hibp-docker
Docker implementation of https://github.com/oschonrock/hibp.git.
[![Build Status](https://git.pi-farm.de/pi-farm/hibp-docker/actions/workflows/build-and-push.yaml/badge.svg)](https://git.pi-farm.de/pi-farm/hibp-docker/actions)
[![Gitea Repo](https://img.shields.io/badge/gitea-repository-blue?logo=gitea&logoColor=white)](__REPO_URL__)
This repository is built and pushed automatically.
### 🏗️ Platform Support
| Architecture | Status | Base-Image |
| :--- | :--- | :--- |
| **x86_64** (amd64) | ✅ Active | `__BASE_IMAGE__` |
| **aarch64** (arm64) | __ARM_STATUS__ | `__BASE_IMAGE__` |
### 🚀 Docker Pull Command
### 🏗️ Platform Support
| Architecture | Status | Base Image | Build Date |
| :--- | :--- | :--- | :--- |
| x86_64 (amd64) | ✅ Active | git.pi-farm.de/pi-farm/docker-baseimage-debian:trixie-slim | 25.03.2026 10:29 |
| aarch64 (arm64) | ✅ Active | git.pi-farm.de/pi-farm/docker-baseimage-debian:trixie-slim | 25.03.2026 10:29 |
### 🚀 Docker Pull
```bash
docker pull git.pi-farm.de/{{.Owner.Name}}/{{.RepoName}}:latest
docker pull git.pi-farm.de/pi-farm/hibp-docker:0.6.2
```
---
*Last updated on: __DATE__*
### 🚀 Docker Compose
```yaml
services:
hibp-docker:
image: git.pi-farm.de/pi-farm/hibp-docker:0.6.2
container_name: hibp-docker
restart: unless-stopped
ports:
- 8082:8082
environment:
- TZ=Europe/Berlin
- PUID=1000
- PGID=1000
volumes:
- /data
```
### 🚀 Docker Run
```bash
docker run -d \
--name hibp-docker \
--restart unless-stopped \
-e TZ=Europe/Berlin \
-e PUID=1000 \
-e PGID=1000 \
-v /data \
-p 8082:8082 \
git.pi-farm.de/pi-farm/hibp-docker:0.6.2
```
*Last updated on: 25.03.2026 10:29*
### 📜 Version History
| Version | Date | Status |
| :--- | :--- | :--- |
| **0.6.2** | 25.03.2026 10:29 | ✅ |

View File

@@ -0,0 +1 @@
| **0.6.2** | 25.03.2026 10:29 | ✅ |

View File

@@ -1,26 +1,21 @@
## BUILD STAGE
BUILD_TAG=1.00
BUILD_BASE_IMAGE=alpine:${BUILD_TAG}
## Examples for BUILD_BASE_IMAGE
# alpine:${BUILD_TAG}
# git.pi-farm.de/pi-farm/docker-baseimage-alpine:v${BUILD_TAG}
#BUILD_ALPINE_ARCH_AMD64=x86_64
#BUILD_ALPINE_ARCH_AARCH64=aarch64
#BUILD_S6_ARCH_amd64=x86_64
#BUILD_S6_ARCH_aarch64=aarch64
#BUILD_S6_OVERLAY_VERSION=3.2.0.2
#BUILD_MAINTAINER=pi-farm
#BUILD_APP_VERSION=v${BUILD_TAG}
#BUILD_APP_NAME=basimage-alpine
#BUILD_APP_USER=pi
#BUILD_APP_GID=1000
BUILD_TAG=0.6.2
BUILD_TAG_LATEST=n
BUILD_BASE_IMAGE=git.pi-farm.de/pi-farm/docker-baseimage-debian:trixie-slim
BUILD_RUNTIME_IMAGE=git.pi-farm.de/pi-farm/docker-baseimage-debian:trixie-slim
BUILD_MAINTAINER=pi-farm
BUILD_APP_VERSION=${BUILD_TAG}
BUILD_APP_GIT=https://github.com/oschonrock/hibp.git
BUILD_APP_NAME=hibp
BUILD_APP_USER=pi
BUILD_APP_GID=1000
## ENV STAGE
ENV_TZ=Europe/Berlin
ENV_PUID=1000
ENV_PGID=1000
# VOL_CONFIG=./config:/config
# VOL_DATA=./data:/data
# PORT_WEB=8080:80
#PUSH=gitea,dockerhub
DESCRIPTION="Example example example"
VOL_DATA=/data
PORT_WEB=8082:8082
PUSH=gitea
#,dockerhub
DESCRIPTION="Docker implementation of https://github.com/oschonrock/hibp.git."

View File

@@ -1 +1,13 @@
services:
hibp-docker:
image: git.pi-farm.de/pi-farm/hibp-docker:0.6.2
container_name: hibp-docker
restart: unless-stopped
ports:
- 8082:8082
environment:
- TZ=Europe/Berlin
- PUID=1000
- PGID=1000
volumes:
- /data

View File

@@ -0,0 +1,15 @@
#!/usr/bin/with-contenv bash
echo "Start: init-hibp run script"
mkdir -p /data
if [ ! -f /data/*.bin ]; then
echo "Downloading /data/hibp_all.sha1.bin"
hibp-download /data/hibp_all.sha1.bin
fi
echo "Set permissions to PUID: ${PUID:-911} and PGID: ${PGID:-1000}"
chown -R "${PUID:-911}:${PGID:-1000}" /data
echo "Finish: init-hibp"

View File

@@ -0,0 +1 @@
oneshot

View File

@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-hibp/run

View File

@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
exec hibp-server --bind-address=0.0.0.0 --sha1-db=/data/hibp_all.sha1.bin

View File

@@ -0,0 +1 @@
longrun