Jibri as docker image
See original GitHub issueHello,
I am trying to build a docker image for Jibri so that it can be deployed on kubernetes.
So far I have created the Dockerfile
.
FROM ubuntu:xenial
ENV DEBIAN_FRONTEND noninteractive
RUN rm -rf /var/lib/apt/lists/* \
&& apt-get update -y \
&& apt-get install ffmpeg -y \
&& apt-get install wget -y \
&& wget https://dl.google.com/linux/linux_signing_key.pub \
&& apt-key add linux_signing_key.pub \
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/dl_google_com_linux_chrome_deb.list \
&& apt-get update -y \
&& apt-get install google-chrome-stable -y \
&& apt-get install -y alsa-utils ffmpeg icewm jq python-pip python3 python3-pip xdotool xserver-xorg-input-void xserver-xorg-video-dummy \
&& apt-get install -y unzip \
&& wget https://chromedriver.storage.googleapis.com/2.28/chromedriver_linux64.zip \
&& unzip chromedriver_linux64.zip \
&& cp chromedriver /usr/bin/chromedriver \
&& apt-get update -y \
&& apt-get install -y git \
&& useradd -m jibri \
&& usermod -a -G adm,video,audio,plugdev jibri
WORKDIR /home/jibri
RUN git clone https://github.com/bbaldino/jibri.git \
&& cp -a jibri/jibri-xmpp-client /home/jibri \
&& cp -a jibri/scripts /home/jibri \
&& cp jibri/asoundrc /home/jibri/.asoundrc \
&& mkdir /home/jibri/.icewm \
&& cp jibri/icewm.preferences /home/jibri/.icewm/preferences \
&& cp jibri/connecting.png /home/jibri/.icewm/connecting.png \
&& apt-get install -y systemd
COPY config.json /home/jibri/config.json
RUN pip3 install setuptools \
&& pip3 install -r jibri/requirements.txt
RUN mkdir -p /var/run/jibri \
&& chown jibri /var/run/jibri
RUN cd jibri-xmpp-client
CMD [ \
"python3", "./app.py", \
"-j $JIBRI_JID", \
"-n $JIBRI_NICK", \
"-p $JIBRI_PASS", \
"-P $JIBRI_ROOMPASS", \
"-r $JIBRI_ROOM", \
"-t $JIBRI_TOKEN_SERVERS", \
"-c", "config.json" \
]
Then I created a env.list
file which contains the variables required to run the CMD in the docker.
JIBRI_JID=focus@auth.<my.domain.com>/focus17493516600
JIBRI_ROOM=<room_name>
JIBRI_PASS=<password as specified in the config.json file>
Now when I start the docker container using the command:
docker run --env-file=./env.list <docker-image-name>
I get the following error:
future: <Future finished exception=InvalidJID('Domain contains illegal characters',)>
Traceback (most recent call last):
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "./jibri-xmpp-client/app.py", line 1166, in start_sleekxmpp
signal_queue=signal_queue)
File "/home/jibri/jibri-xmpp-client/jibrixmppclient.py", line 33, in __init__
sleekxmpp.ClientXMPP.__init__(self, jid, password)
File "/usr/local/lib/python3.5/dist-packages/sleekxmpp/clientxmpp.py", line 65, in __init__
BaseXMPP.__init__(self, jid, 'jabber:client')
File "/usr/local/lib/python3.5/dist-packages/sleekxmpp/basexmpp.py", line 70, in __init__
self.requested_jid = JID(jid, cache_lock=True)
File "/usr/local/lib/python3.5/dist-packages/sleekxmpp/jid.py", line 463, in __init__
parsed_jid = _parse_jid(jid)
File "/usr/local/lib/python3.5/dist-packages/sleekxmpp/jid.py", line 152, in _parse_jid
domain = _validate_domain(domain)
File "/usr/local/lib/python3.5/dist-packages/sleekxmpp/jid.py", line 233, in _validate_domain
raise InvalidJID('Domain contains illegal characters')
sleekxmpp.jid.InvalidJID: Domain contains illegal characters
Need help.
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (10 by maintainers)
Top Results From Across the Web
jitsi/jibri - Docker Image
This is the Jibri container image for Jitsi Meet. See the project website for more information and check the handbook for configuration settings....
Read more >docker-jitsi-meet/Dockerfile at master - jibri - GitHub
description="Components for recording and/or streaming a conference." LABEL org.opencontainers.image.url="https://github.com/jitsi/jibri".
Read more >[Setup / Guide] Jitsi Meet Native + Multiple (6) Jibri Docker ...
This is a tutorial and a record of how I set up a Jitsi Meet server and 6 dockerized Jibri instances on an...
Read more >How to build a jibri docker image from unstable build?
First create a docker image for base using unstable build. Go to base directory and run make JITSI_RELEASE=unstable JITSI_REPO=myimage OR You ...
Read more >Jitsi & Jibri Setup | Medium
The following url is straight forward to make the Jitsi up and running (either in a Linux 16, 18 or Open Suse or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Does anyone have a working Dockerfile for jibri? Can someone please share his/her docker setup? Thanks…
Hi Saúl, Do you know how exactly I can use this? Thanks so much for pointing this out…
On Tue, Jun 25, 2019 at 2:51 PM Saúl Ibarra Corretgé < notifications@github.com> wrote: