Create config
This commit is contained in:
commit
817dddbbeb
35
Dockerfile
Normal file
35
Dockerfile
Normal file
|
@ -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"]
|
11
README.md
Normal file
11
README.md
Normal file
|
@ -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
|
||||||
|
```
|
8
justfile
Normal file
8
justfile
Normal file
|
@ -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}
|
Loading…
Reference in a new issue