Compare commits

..

27 Commits

Author SHA1 Message Date
Patrick Niebeling
9731bb5be6 Switch exp. to old stable
All checks were successful
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m54s
Deploy Container Image to Registry / docker-build-stable (push) Successful in 5m15s
2025-09-23 15:22:46 +02:00
Patrick Niebeling
2735b18856 Disable Setup QEMU
Some checks failed
Deploy Container Image to Registry / docker-build-stable (push) Successful in 52s
Deploy Container Image to Registry / docker-build-experimental (push) Failing after 34s
2025-09-23 15:10:21 +02:00
Patrick Niebeling
f62382f3c6 Rmove setup qemu
Some checks failed
Deploy Container Image to Registry / docker-build-stable (push) Successful in 50s
Deploy Container Image to Registry / docker-build-experimental (push) Has been cancelled
2025-09-23 15:00:38 +02:00
Patrick Niebeling
a061cd6304 Update expirimental Stage
Some checks failed
Deploy Container Image to Registry / docker-build-stable (push) Successful in 59s
Deploy Container Image to Registry / docker-build-experimental (push) Has been cancelled
2025-09-23 14:56:34 +02:00
Patrick Niebeling
ef9aa2d54c Update Var
Some checks failed
Deploy Container Image to Registry / docker-build-stable (push) Successful in 48s
Deploy Container Image to Registry / docker-build-experimental (push) Has been cancelled
2025-09-23 14:53:59 +02:00
Patrick Niebeling
c53524aa26 Update Deploy
Some checks failed
Deploy Container Image to Registry / docker-build-stable (push) Failing after 19s
Deploy Container Image to Registry / docker-build-experimental (push) Has been cancelled
2025-09-23 14:51:57 +02:00
d3a7440091 Stable/Dockerfile aktualisiert
Some checks failed
Deploy Container Image to Registry / docker-build-experimental (push) Failing after 10m10s
Deploy Container Image to Registry / docker-build-stable (push) Failing after 22m32s
2025-09-04 00:02:40 +02:00
61b83b85d4 Merge pull request 'provenance: false' (#19) from Update-Pipeline into main
Some checks failed
Deploy Container Image to Registry / docker-build-stable (push) Failing after 12m24s
Deploy Container Image to Registry / docker-build-experimental (push) Failing after 9m45s
Reviewed-on: #19
2024-11-22 13:45:26 +00:00
Patrick Niebeling
72d26206fa provenance: false
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-22 14:44:56 +01:00
5e690d52e2 Merge pull request 'provenance: false' (#18) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker-build-stable (push) Successful in 1m38s
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m36s
Reviewed-on: #18
2024-11-22 13:41:07 +00:00
Patrick Niebeling
c57dcd24bf provenance: false
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-22 14:40:14 +01:00
be9aea31d9 Merge pull request 'Change Interval to Weekly' (#17) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m28s
Deploy Container Image to Registry / docker-build-stable (push) Successful in 1m31s
Reviewed-on: #17
2024-11-21 12:38:07 +00:00
Patrick Niebeling
d6123836cf Change Interval to Weekly
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-21 13:37:27 +01:00
246dc298e6 Merge pull request 'Update Date' (#16) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker-build-stable (push) Successful in 1m36s
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m32s
Reviewed-on: #16
2024-11-20 15:03:54 +00:00
Patrick Niebeling
509e7f472d Update Date
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 16:03:39 +01:00
fd868b525b Merge pull request 'Update assignment' (#15) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker-build-stable (push) Successful in 1m13s
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m13s
Reviewed-on: #15
2024-11-20 15:00:39 +00:00
Patrick Niebeling
8cb84e605c Update assignment
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 16:00:14 +01:00
9e2d45f346 Merge pull request 'Update Version Variable' (#14) from Update-Pipeline into main
Some checks failed
Deploy Container Image to Registry / docker-build-stable (push) Failing after 27s
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m12s
Reviewed-on: #14
2024-11-20 14:59:11 +00:00
Patrick Niebeling
865ba3034e Update Version Variable
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 15:58:54 +01:00
84b3f2e897 Merge pull request 'Fix Date' (#13) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m19s
Deploy Container Image to Registry / docker-build-stable (push) Successful in 1m21s
Reviewed-on: #13
2024-11-20 14:55:31 +00:00
Patrick Niebeling
6c58da3eee Fix Date
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
2024-11-20 15:55:02 +01:00
9c411cd147 Merge pull request 'Update-Pipeline' (#12) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m20s
Deploy Container Image to Registry / docker-build-stable (push) Successful in 1m22s
Reviewed-on: #12
2024-11-20 14:38:44 +00:00
180d04a0e4 Merge pull request 'Build Experimental' (#11) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker-build-stable (push) Successful in 1m30s
Deploy Container Image to Registry / docker-build-experimental (push) Successful in 1m28s
Reviewed-on: #11
2024-11-20 14:24:31 +00:00
b1457ffbfc Merge pull request 'Add .gitignore' (#10) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker (push) Successful in 1m7s
Reviewed-on: #10
2024-11-20 13:50:02 +00:00
b38bafa63d Merge pull request 'Update Cron' (#9) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker (push) Successful in 1m6s
Reviewed-on: #9
2024-11-20 13:34:55 +00:00
6f0189e8c0 Merge pull request 'Updates Cron' (#8) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker (push) Successful in 1m4s
Reviewed-on: #8
2024-11-20 13:20:24 +00:00
54728e3d88 Merge pull request 'Upldate' (#7) from Update-Pipeline into main
All checks were successful
Deploy Container Image to Registry / docker (push) Successful in 1m6s
Reviewed-on: #7
2024-11-20 13:15:58 +00:00
14 changed files with 64 additions and 162 deletions

View File

@@ -1,10 +1,11 @@
name: Deploy Container Image to Registry
on:
schedule:
- cron: 0 1 * * *
- cron: 0 1 * * 1
push:
branches:
- main
workflow_dispatch:
jobs:
docker-build-stable:
@@ -13,8 +14,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Ausgabe der Variable gitea.actor
run: echo "Gitea Actor = ${{ gitea.actor }}"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -23,24 +27,27 @@ jobs:
uses: docker/login-action@v3
with:
registry: gitea.gnilebein.de
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REG_GITEA_PASSWORD }}
username: ${{ gitea.actor }}
password: ${{ secrets.PAT }}
- name: Get Meta
id: meta
run: |
echo VERSION=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^[[:xdigit:]]\{40\}[[:blank:]]refs\/tags\/\([0-9]\{1\}\.[0-9]\{1,2\}\($\|\.[0-9]\{1,2\}$\)\)/\1/p" | sort --version-sort | tail -1) | tee -a $GITHUB_OUTPUT
echo IMAGE_CREATED=$(date -u +"%Y-%m-%dT%H:%M:%SZ") | tee -a $GITHUB_OUTPUT
IMAGE_CREATED=${{ steps.meta.outputs.VERSION }}
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./StableV2
file: StableV2/Dockerfile
context: ./Stable
file: Stable/Dockerfile
platforms: linux/amd64
pull: false
push: true
no-cache: true
provenance: false
build-args: |
VERSION=${{ steps.meta.outputs.VERSION }}
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
@@ -54,8 +61,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -64,8 +71,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: gitea.gnilebein.de
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REG_GITEA_PASSWORD }}
username: ${{ gitea.actor }}
password: ${{ secrets.PAT }}
- name: Get Meta
id: meta
@@ -82,6 +89,7 @@ jobs:
pull: false
push: true
no-cache: true
provenance: false
build-args: |
VERSION=${{ steps.meta.outputs.VERSION }}
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}

View File

@@ -1,5 +0,0 @@
{
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///c%3A/Users/patrick.niebeling/Documents/gitRepos%20-%20privat/Docker-rspamd/.gitea/workflows/deploy.yaml"
}
}

View File

@@ -1,9 +1,9 @@
FROM debian:stable-slim
FROM debian:oldstable-slim
LABEL maintainer="gnilebein - <patrick@niebel.ing>"
# Setup Labels
ARG VERSION
ARG IMAGE_CREATEDATE
ARG IMAGE_CREATED
# Set apt non-interactive
ENV DEBIAN_FRONTEND=noninteractive
@@ -16,7 +16,7 @@ LABEL org.label-schema.name="Rspamd" \
org.label-schema.schema-version="1.0" \
org.label-schema.version=$VERSION \
org.label-schema.vcs-url="https://gitea.gnilebein.de/gnilebein/Docker-rspamd" \
org.label-schema.build-date=$DATE
org.label-schema.build-date=$IMAGE_CREATED
# Install Rspamd
RUN set -x \

View File

@@ -34,4 +34,4 @@ This allows configuration of the _Webinterface_, _DKIM_ and _Redis_. The tool wr
### Support ###
This Docker image is for personal use but let me know if there are any improvements available.
Please use [Github](https://github.com/gnilebein/Docker-Rspamd) to send me a message
Please use [Github](https://gitea.gnilebein.de/gnilebein/Docker-rspamd) to send me a message

View File

@@ -1,13 +1,38 @@
FROM debian:stable-slim
LABEL maintainer="gnilebein - <docker@gnilebein.nl>"
FROM debian:oldstable-slim
LABEL maintainer="gnilebein - <patrick@niebel.ing>"
# Setup Labels
ARG VERSION
ARG IMAGE_CREATED
# Set apt non-interactive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive
LABEL org.label-schema.name="Rspamd" \
org.label-schema.description="Rspamd Spam Filter - STABLE" \
org.label-schema.usage="https://gitea.gnilebein.de/gnilebein/-/packages/container/docker-rspamd/latest" \
org.label-schema.url="https://rspamd.com" \
org.label-schema.vendor="gnilebein" \
org.label-schema.schema-version="1.0" \
org.label-schema.version=$VERSION \
org.label-schema.vcs-url="https://gitea.gnilebein.de/gnilebein/Docker-rspamd" \
org.label-schema.build-date=$IMAGE_CREATED
# Install Rspamd
RUN set -x \
&& apt update \
&& apt --no-install-recommends install -y lsb-release wget gnupg openssl ca-certificates \
&& apt --no-install-recommends install -y \
apt-transport-https \
dnsutils \
netcat-traditional \
lsb-release \
wget \
gnupg \
openssl \
ca-certificates \
nano \
less \
ca-certificates \
&& DEBIAN_CODE_NAME=`lsb_release -c -s` \
&& wget -O - https://rspamd.com/apt-stable/gpg.key | apt-key add - \
&& echo "deb http://rspamd.com/apt-stable/ $DEBIAN_CODE_NAME main" > /etc/apt/sources.list.d/rspamd.list \
@@ -16,42 +41,31 @@ RUN set -x \
&& apt --no-install-recommends install -y rspamd \
&& apt autoremove --purge -y \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& echo 'alias ll="ls -la --color"' >> ~/.bashrc
# Override default settings
COPY rspamd.conf.local.override /etc/rspamd/
COPY worker-controller.inc /etc/rspamd/override.d/
COPY worker-proxy.inc /etc/rspamd/override.d/
COPY set_worker_password.sh /set_worker_password.sh
COPY docker-entrypoint.sh /docker-entrypoint.sh
# Keep database and configuration persistent
# # Keep database and configuration persistent
VOLUME /etc/rspamd/local.d
VOLUME /etc/rspamd/override.d
VOLUME /etc/rspamd/custom
VOLUME /var/lib/rspamd
# Port 11334 is for web frontend
# Port 11332 is for milter
# Port 11333 is for worker
EXPOSE 11332 11334
EXPOSE 11332 11333 11334
# Healtcheck if Rspamd is returning stats
HEALTHCHECK --interval=1m --timeout=5s --start-period=10s \
CMD /usr/bin/rspamadm control stat || exit 1
# Run Rspamd
ENTRYPOINT ["/usr/bin/rspamd","-f","-u","_rspamd","-g","_rspamd"]
ENTRYPOINT ["bash", "/docker-entrypoint.sh"]
# Setup Labels
ARG VERSION
ARG COMMIT
ARG BRANCH
ARG DATE
STOPSIGNAL SIGTERM
LABEL org.label-schema.name="Rspamd" \
org.label-schema.description="Rspamd Spam Filter - STABLE" \
org.label-schema.usage="https://hub.docker.com/r/gnilebein/rspamd/" \
org.label-schema.url="https://rspamd.com" \
org.label-schema.vendor="gnilebein" \
org.label-schema.schema-version="1.0" \
org.label-schema.version=$VERSION \
org.label-schema.vcs-url="https://github.com/rspamd/rspamd/" \
org.label-schema.vcs-ref=$COMMIT \
org.label-schema.build-date=$DATE \
CMD ["/usr/bin/rspamd", "-f", "-u", "_rspamd", "-g", "_rspamd"]

View File

@@ -9,9 +9,8 @@ VERSION=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^
IMAGE_NAME=docker-rspamd
zip -r config
docker build \
--no-cache \
--build-arg VERSION=${VERSION} \
--build-arg COMMIT=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^\([[:xdigit:]]\{40\}\)[[:blank:]]refs\/tags\/${VERSION}^{}$/\1/p" | xargs git rev-parse --short) \
--build-arg BRANCH=$(git rev-parse --abbrev-ref HEAD) \

View File

@@ -1,72 +0,0 @@
FROM debian:stable-slim
LABEL maintainer="gnilebein - <patrick@niebel.ing>"
# Setup Labels
ARG VERSION
ARG IMAGE_CREATED
# Set apt non-interactive
ENV DEBIAN_FRONTEND=noninteractive
LABEL org.label-schema.name="Rspamd" \
org.label-schema.description="Rspamd Spam Filter - STABLE" \
org.label-schema.usage="https://gitea.gnilebein.de/gnilebein/-/packages/container/docker-rspamd/latest" \
org.label-schema.url="https://rspamd.com" \
org.label-schema.vendor="gnilebein" \
org.label-schema.schema-version="1.0" \
org.label-schema.version=$VERSION \
org.label-schema.vcs-url="https://gitea.gnilebein.de/gnilebein/Docker-rspamd" \
org.label-schema.vcs-ref=$COMMIT \
org.label-schema.build-date=$DATE
# Install Rspamd
RUN set -x \
&& apt update \
&& apt --no-install-recommends install -y \
apt-transport-https \
dnsutils \
netcat-traditional \
lsb-release \
wget \
gnupg \
openssl \
ca-certificates \
nano \
less \
ca-certificates \
&& DEBIAN_CODE_NAME=`lsb_release -c -s` \
&& wget -O - https://rspamd.com/apt-stable/gpg.key | apt-key add - \
&& echo "deb http://rspamd.com/apt-stable/ $DEBIAN_CODE_NAME main" > /etc/apt/sources.list.d/rspamd.list \
&& apt purge -y lsb-release wget gnupg \
&& apt update \
&& apt --no-install-recommends install -y rspamd \
&& apt autoremove --purge -y \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* \
&& echo 'alias ll="ls -la --color"' >> ~/.bashrc
# Override default settings
COPY rspamd.conf.local.override /etc/rspamd/
COPY worker-controller.inc /etc/rspamd/override.d/
COPY worker-proxy.inc /etc/rspamd/override.d/
COPY set_worker_password.sh /set_worker_password.sh
COPY docker-entrypoint.sh /docker-entrypoint.sh
# # Keep database and configuration persistent
VOLUME /etc/rspamd/local.d
VOLUME /etc/rspamd/override.d
VOLUME /etc/rspamd/custom
VOLUME /var/lib/rspamd
EXPOSE 11332 11333 11334
# Healtcheck if Rspamd is returning stats
HEALTHCHECK --interval=1m --timeout=5s --start-period=10s \
CMD /usr/bin/rspamadm control stat || exit 1
# Run Rspamd
ENTRYPOINT ["bash", "/docker-entrypoint.sh"]
STOPSIGNAL SIGTERM
CMD ["/usr/bin/rspamd", "-f", "-u", "_rspamd", "-g", "_rspamd"]

View File

@@ -1,18 +0,0 @@
#!/bin/bash
# hooks/build
# https://docs.docker.com/docker-cloud/builds/advanced/
# $IMAGE_NAME var is injected into the build so the tag is correct.
echo "[***] Build hook running"
VERSION=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^[[:xdigit:]]\{40\}[[:blank:]]refs\/tags\/\([0-9]\{1\}\.[0-9]\{1,2\}\($\|\.[0-9]\{1,2\}$\)\)/\1/p" | sort --version-sort | tail -1)
IMAGE_NAME=docker-rspamd
docker build \
--no-cache \
--build-arg VERSION=${VERSION} \
--build-arg COMMIT=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^\([[:xdigit:]]\{40\}\)[[:blank:]]refs\/tags\/${VERSION}^{}$/\1/p" | xargs git rev-parse --short) \
--build-arg BRANCH=$(git rev-parse --abbrev-ref HEAD) \
--build-arg DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
-t ${IMAGE_NAME} .

View File

@@ -1,9 +0,0 @@
#!/bin/bash
VERSION=$(git ls-remote --tags -q https://github.com/rspamd/rspamd | sed -n "s/^[[:xdigit:]]\{40\}[[:blank:]]refs\/tags\/\([0-9]\{1\}\.[0-9]\{1,2\}\($\|\.[0-9]\{1,2\}$\)\)/\1/p" | sort --version-sort | tail -1)
docker tag \
"${IMAGE_NAME}" \
"${DOCKER_REPO}:stable-${VERSION}"
docker push \
"${DOCKER_REPO}:stable-${VERSION}"

View File

@@ -1,13 +0,0 @@
options {
pidfile = false;
.include "$CONFDIR/options.inc"
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/options.inc"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/options.inc"
}
logging {
type = "console";
.include "$CONFDIR/logging.inc"
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/logging.inc"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/logging.inc"
}

View File

@@ -1 +0,0 @@
bind_socket = "*:11334";

View File

@@ -1 +0,0 @@
bind_socket = *:11332;