Running Jami in a Docker

Hello everyone! How can I create a Docker container in which an account (or several) will be running that will always be online and will be used as a buffering server?

I tried to figure out https://git.jami.net/savoirfairelinux/jami-daemon but I couldn’t even compile it in a container. All other solutions that I could find on the internet also didn’t help me.

1 Like

with the dockerfile inside jami-daemon?

1 Like

If you didn’t notice, I myself provided this link at the beginning of the thread and wrote why it didn’t help me. It doesn’t work for me, even with a complete cloning of the repository and running the docker file from the repository.

And even if it works - what’s next? How to work with this compiled source? How do I “authorize” users there? In the documentation https://git.jami.net/savoirfairelinux/jami-docs I didn’t find anything on this topic (maybe I was not looking in the right place)

There is the repo jami-web using this docker for example. But you need to interact with the daemon (can be done via a client or dbus or rest)

What about CLI commands or some other way? I essentially need it to always be active in the container, meaning it’s enough to log in once and that’s it. I think it should be simpler.

Perhaps some dbus command? Is there documentation for them?

I did a jami-cli project long time ago

Using dbus. Not sure it’s still working. Docs.jami.net have docs for dbus and d-feet can be used to explore dbus api on the system.

1 Like

Hey,
I do it with the jami-web provided container.
I just did

git clone https://git.jami.net/savoirfairelinux/jami-web.git
cd jami-web
git submodule update --init --recursive
podman-compose up --build -d
NAME=$(podman ps|awk '/jami-web_jami-web_1/{print $1}')
podman cp ~/.local/share/jami $NAME:/root/.local/share/
podman cp ~/.config/jami $NAME:/root/.config/ # probably not needed
podman-compose down # I dunno how to SIGHUP nor if usefull, so...
podman-compose up -d

and I saw my user appearing on-line on my phone (using another ID).

This is still a bit rough but seems to do the job.
I do not even know how to use the UI as nothing happens when trying to login but it seems it is not needed to just maintain a presence…

Hope this help!
Cheers,
Jean-Charles