commit 817dddbbeb3e8c1b390a1baad9172ce0ebe5656b Author: Erin Shepherd Date: Tue Jul 23 23:24:16 2024 +0200 Create config diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d6bec73 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,35 @@ +# Mirrored from upstream Dockerfile +ARG UID='9000' +ARG USER='ejabberd' +ARG HOME="opt/$USER" +ARG METHOD='direct' +ARG BUILD_DIR="/$USER" +ARG VERSION= + +FROM ghcr.io/processone/ejabberd:${VERSION} as upstream + +# The fact that we have to sleep here sucks but "ejabberdctl start" doesn't wait for the +# daemon to be ready... +RUN ejabberdctl start && \ + sleep 5 && \ + ejabberdctl modules_available && \ + ejabberdctl module_install mod_s3_upload && \ + ejabberdctl stop && \ + rm -Rf /opt/ejabberd/database/* && \ + rm -Rf /opt/ejabberd/logs/* && \ + rm /opt/ejabberd/.erlang.cookie + +HEALTHCHECK \ + --interval=1m \ + --timeout=5s \ + --start-period=5s \ + --retries=10 \ + CMD ejabberdctl status + +WORKDIR /$HOME +USER $USER +VOLUME ["/$HOME"] +EXPOSE 1883 4369-4399 5210 5222 5269 5280 5443 + +ENTRYPOINT ["/sbin/tini","--","ejabberdctl"] +CMD ["foreground"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..2f55a9f --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# ejabberd - alioth edition container + +This is the [ghcr.io/processone/ejabberd](https://ghcr.io/processone/ejabberd) container with +mod_s3_upload from contrib enabled. That is all + +Shipping a new version: + +```sh +just push linux/amd64 +just push linux/aarch64 +``` diff --git a/justfile b/justfile new file mode 100644 index 0000000..5b09eee --- /dev/null +++ b/justfile @@ -0,0 +1,8 @@ +export BASE_TAG := "git.alioth.systems/alioth/ejabberd" +export VERSION := "24.02" + +build platform: + docker buildx b -t ${BASE_TAG}:${VERSION} --platform {{platform}} --build-arg VERSION=${VERSION} . + +push platform: (build platform) + docker push ${BASE_TAG}:${VERSION}