Mercurial > sat_docs
diff docker_legacy/salut/Dockerfile @ 164:29873a41aae1
docker: new docker files are now in sat main repos, this one is legacy
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jan 2021 18:33:52 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker_legacy/salut/Dockerfile Fri Jan 01 18:33:52 2021 +0100 @@ -0,0 +1,38 @@ +############################################################### +# # +# Salut à Toi/salut # +# This Dockerfile build a Salut directory prepared for SàT # +# Salut à Toi is a multi-frontends multi-purposes XMPP client # +# # +############################################################### + +FROM salutatoi/base:latest + +MAINTAINER Goffi <goffi@goffi.org> + +############################ +# AUTOMATIC CONFIGURATION # +############################ + +COPY scripts/salut /usr/local/bin/ +RUN chown root:root /usr/local/bin/salut && \ +chmod 0555 /usr/local/bin/salut && \ + +######## +# BASE # +######## + +cd /usr/share && hg clone https://repos.goffi.org/salut sat_salut && chown -R sat:sat sat_salut && \ + +# configuration is really basic in salut, we just use environment to set data +sed -i 's/^xmppcomponent =.*$/import os\nxmppcomponent = Component("prosody", 5347, "salut."+os.getenv("DOMAIN"), os.getenv("SAT_SALUT_SECRET"))/' sat_salut/salut.tac + +WORKDIR /usr/share/sat_salut + +USER sat + +########## +# LAUNCH # +########## + +ENTRYPOINT ["salut"]