Compare commits

..

82 Commits

Author SHA1 Message Date
b6cf806444 buildargs.env aktualisiert
All checks were successful
/ release-and-build (push) Successful in 7m44s
2026-03-25 10:05:59 +00:00
Gitea Action
29583fec3b [skip ci] 2026-03-25 10:05:59 +00:00
899f7ef4ec .gitea/workflows/build-and-push.yaml aktualisiert 2026-03-25 10:05:59 +00:00
a9b2ae05e4 root/etc/s6-overlay/s6-rc.d/init-hibp/run aktualisiert 2026-03-25 10:05:59 +00:00
9327f7afda root/etc/s6-overlay/s6-rc.d/init-hibp/up aktualisiert 2026-03-25 10:05:59 +00:00
1da4fbd426 root/etc/s6-overlay/s6-rc.d/svc-hibp/run aktualisiert 2026-03-25 10:05:59 +00:00
08d2915f2f root/etc/s6-overlay/s6-rc.d/init-hibp/run aktualisiert 2026-03-25 10:05:59 +00:00
3a7a942587 root/etc/s6-overlay/s6-rc.d/svc-hibp/run aktualisiert 2026-03-25 10:05:59 +00:00
5b9519bf7a root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-hibp hinzugefügt 2026-03-25 10:05:59 +00:00
5d384a1f28 root/etc/s6-overlay/s6-rc.d/user/contents.d/init-hibp hinzugefügt 2026-03-25 10:05:59 +00:00
31cef0c000 root/etc/s6-overlay/s6-rc.d/svc-hibp/run aktualisiert 2026-03-25 10:05:59 +00:00
Pi-Farm
577dbdf2ea fix data-dir 2026-03-25 10:05:59 +00:00
Pi-Farm
c21d849c96 changed Runtime-Image to Debian-Slim 2026-03-25 10:05:59 +00:00
Pi-Farm
3fb26f056c make run files executable 2026-03-25 10:05:59 +00:00
57c5b25712 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
1601b94c3a Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
acd76cd5b4 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
33fe45387b Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
2943603ba3 root / etc / s6-overlay / s6-rc.d /init-hibp/dependencies.d/init-config gelöscht 2026-03-25 10:05:59 +00:00
c2c7375a43 root / etc / s6-overlay / s6-rc.d /init-hibp/type gelöscht 2026-03-25 10:05:59 +00:00
0b9bfb9e5d root / etc / s6-overlay / s6-rc.d /init-hibp/up gelöscht 2026-03-25 10:05:59 +00:00
62c96bac29 root / etc / s6-overlay / s6-rc.d /init-hibp/run gelöscht 2026-03-25 10:05:59 +00:00
6ef8352ef2 root / etc / s6-overlay / s6-rc.d /svc-hibp/dependencies.d/init-services gelöscht 2026-03-25 10:05:59 +00:00
b8fc48a1a5 root / etc / s6-overlay / s6-rc.d /svc-hibp/run gelöscht 2026-03-25 10:05:59 +00:00
cd8421754d root / etc / s6-overlay / s6-rc.d /svc-hibp/type gelöscht 2026-03-25 10:05:59 +00:00
4972b2d141 root/etc/s6-overlay/s6-rc.d/svc-hibp/type hinzugefügt 2026-03-25 10:05:59 +00:00
b3dae6df41 root/etc/s6-overlay/s6-rc.d/svc-hibp/run hinzugefügt 2026-03-25 10:05:59 +00:00
a28043c343 root/etc/s6-overlay/s6-rc.d/svc-hibp/dependencies.d/init-services hinzugefügt 2026-03-25 10:05:59 +00:00
c1f97080ac root/etc/s6-overlay/s6-rc.d/init-hibp/up aktualisiert 2026-03-25 10:05:59 +00:00
390b6234e5 root/etc/s6-overlay/s6-rc.d/init-hibp/run aktualisiert 2026-03-25 10:05:59 +00:00
c79c1b694b root/etc/s6-overlay/s6-rc.d/init-hibp/dependencies.d/init-config hinzugefügt 2026-03-25 10:05:59 +00:00
6bd1ee9013 root/etc/s6-overlay/s6-rc.d/init-hibp/up hinzugefügt 2026-03-25 10:05:59 +00:00
3b234064b0 root/etc/s6-overlay/s6-rc.d/init-hibp/type hinzugefügt 2026-03-25 10:05:59 +00:00
73508e6ef8 root/etc/s6-overlay/s6-rc.d/init-hibp/run hinzugefügt 2026-03-25 10:05:59 +00:00
dca64875a4 root/etc/s6-overlay/s6-rc.d/pfad gelöscht 2026-03-25 10:05:59 +00:00
68f7c66982 root/etc/s6-overlay/s6-rc.d/pfad hinzugefügt 2026-03-25 10:05:59 +00:00
08a4e7a496 root/etc gelöscht 2026-03-25 10:05:59 +00:00
69cafebf26 root/etc hinzugefügt 2026-03-25 10:05:59 +00:00
9e42d30b3c Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
7594f49351 Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
5b6aa5d80e root / etc / s6-overlay / s6-rc.d /svc-hibp/type hinzugefügt 2026-03-25 10:05:59 +00:00
f70b77f7c0 root / etc / s6-overlay / s6-rc.d /svc-hibp/run hinzugefügt 2026-03-25 10:05:59 +00:00
b99fd90482 root / etc / s6-overlay / s6-rc.d /svc-hibp/dependencies.d/init-services hinzugefügt 2026-03-25 10:05:59 +00:00
96a4e4f1f4 root / etc / s6-overlay / s6-rc.d /init-hibp/dependencies.d/init-config hinzugefügt 2026-03-25 10:05:59 +00:00
0fd8882e5d root / etc / s6-overlay / s6-rc.d /init-hibp/up hinzugefügt 2026-03-25 10:05:59 +00:00
e9fd901a98 root / etc / s6-overlay / s6-rc.d /init-hibp/type hinzugefügt 2026-03-25 10:05:59 +00:00
3d7cd77d7b root / etc / s6-overlay / s6-rc.d /init-hibp/run hinzugefügt 2026-03-25 10:05:59 +00:00
a2f466c634 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
2e4f8c8bab Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
177cb3fd57 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
dfc76ccdc3 Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
2c0259c464 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
f5f2311747 Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
ec51105993 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
bd4df383ea Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
d69bc3b0c1 buildargs.env aktualisiert 2026-03-25 10:05:59 +00:00
d5ee1be676 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
6a85b5e957 Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
9279383cda Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
44d4fed72a Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
96e42a01fe Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
84d989bfc4 Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
237dcacf23 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
1a5af72b3e Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
46e02d3f35 Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
a18ebec833 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
a985148381 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
e909046eb1 Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
734ec636bb Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
1db8f5b6a9 buildargs.env aktualisiert 2026-03-25 10:05:59 +00:00
d5a03ba88c Dockerfile.aarch64 aktualisiert 2026-03-25 10:05:59 +00:00
8bf3df700c Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
95a1e3adbd Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
5d0d1bca9a Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
de58405ccd Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
59ca58df24 Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
d72b750b69 Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
3f9937787c Dockerfile aktualisiert 2026-03-25 10:05:59 +00:00
6cfaba5bc0 buildargs.env aktualisiert 2026-03-25 10:05:59 +00:00
e0b5789405 test 2026-03-25 10:05:59 +00:00
9fda27e9e4 buildargs.env aktualisiert 2026-03-25 10:05:59 +00:00
da44f3594e buildargs.env aktualisiert 2026-03-25 10:05:59 +00:00
16 changed files with 175 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')

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