question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jibri as docker image

See original GitHub issue

Hello, 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:closed
  • Created 5 years ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jinfeeicommented, Jun 25, 2019

Does anyone have a working Dockerfile for jibri? Can someone please share his/her docker setup? Thanks…

0reactions
jinfeeicommented, Jun 25, 2019

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:

@jinfeei https://github.com/jinfeei Take a look here: jitsi/docker-jitsi-meet#54 https://github.com/jitsi/docker-jitsi-meet/pull/54

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jitsi/jibri/issues/75?email_source=notifications&email_token=AACEXJRDP2K2G7BGFKTY7EDP4G57XA5CNFSM4EXYTMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYPHCUI#issuecomment-505311569, or mute the thread https://github.com/notifications/unsubscribe-auth/AACEXJXPEABZIINVO5WAVMTP4G57XANCNFSM4EXYTMGA .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found