xmpp-compliance-tester

XMPP Compliance Tester, forked from github.com/iNPUTmice/ComplianceTester
git clone https://git.in0rdr.ch/xmpp-compliance-tester.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit ea3e65f953db8bd1c5581f30b3801c2f397f34d3
parent 442e1f961b8e395a5e9cf1cd67736640e14330e0
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Thu, 10 Jul 2025 08:32:22 +0200

feat: add Dockerfile

Diffstat:
ADockerfile | 16++++++++++++++++
MREADME.md | 13+++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,15 @@ +FROM docker.io/maven:3 AS builder + +# https://github.com/iNPUTmice/ComplianceTester +RUN git clone https://git.in0rdr.ch/xmpp-compliance-tester.git /build +WORKDIR /build +RUN mvn package + +FROM openjdk:jre-alpine +COPY --from=builder /build/target/ComplianceTester-0.2.3.jar ComplianceTester-0.2.3.jar + +# XMPP username and password from env +ENV XMPP_USER=username@domain.tld +ENV XMPP_PASSWORD=password + +CMD ["sh", "-c", "java -jar ComplianceTester-0.2.3.jar $XMPP_USER $XMPP_PASSWORD"] +\ No newline at end of file diff --git a/README.md b/README.md @@ -51,3 +51,15 @@ There is also a very tiny wrapper script called ```runall.sh``` invoking that wi ## Online Version There is an online version of the ComplianceTester available on [compliance.conversations.im](https://compliance.conversations.im). + +## Dockerfile + +Build +````bash +docker build -t compliance-tester:0.2.3 . --no-cache +```` + +Run: +```bash +docker run --rm --name=compliance-tester -e XMPP_USER=username@domain.tld -e XMPP_PASSWORD=password compliance-tester:0.2.3 +``` +\ No newline at end of file