web-dev-qa-db-fra.com

Comment écrire un fichier docker-compose pour bbb (gros bouton bleu)?

Je trouve un Dockerfile Big Blue Button sur [bigbluebutton/docker] [1] [1]: https://github.com/bigbluebutton/docker Et la deuxième semaine, j'ai essayé d'écrire docker-compose.yml fichier.
Comment écrire le fichier docker-compose.yml. J'ai essayé mais pas de succès.

C'est Dockerfile [bigbluebutton/docker] [1] [1]: https://github.com/bigbluebutton/docker

    FROM ubuntu:16.04
MAINTAINER [email protected]

ENV DEBIAN_FRONTEND noninteractive
# RUN echo 'Acquire::http::Proxy "http://192.168.0.130:3142";'  > /etc/apt/apt.conf.d/01proxy
RUN apt-get update && apt-get install -y wget

RUN echo "deb http://ubuntu.bigbluebutton.org/xenial-200 bigbluebutton-xenial main " | tee /etc/apt/sources.list.d/bigbluebutton.list
RUN wget http://ubuntu.bigbluebutton.org/repo/bigbluebutton.asc -O- | apt-key add -
RUN apt-get update && apt-get -y dist-upgrade

# -- Setup Tomcat7 to run under docker
RUN apt-get install -y \
  haveged    \
  net-tools  \
  supervisor \
  Sudo       \
  Tomcat7

RUN sed -i 's|securerandom.source=file:/dev/random|securerandom.source=file:/dev/urandom|g'  /usr/lib/jvm/Java-8-openjdk-AMD64/jre/lib/security/Java.security
ADD mod/Tomcat7 /etc/init.d/Tomcat7
RUN chmod +x /etc/init.d/Tomcat7

RUN apt-get install -y language-pack-en
RUN update-locale LANG=en_US.UTF-8

# -- Install BigBlueButton
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
RUN apt-get install -y bigbluebutton
RUN apt-get install -y bbb-demo

# -- Install mongodb (for HTML5 client)
RUN Sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
RUN echo "deb [ Arch=AMD64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | Sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
RUN Sudo apt-get update && Sudo apt-get install -y mongodb-org curl

# -- Install nodejs (for HTML5 client)
RUN apt-get install -y apt-transport-https
RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN echo 'deb http://deb.nodesource.com/node_8.x xenial main' > /etc/apt/sources.list.d/nodesource.list
RUN echo 'deb-src http://deb.nodesource.com/node_8.x xenial main' >> /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install -y nodejs

# -- Install HTML5 client
RUN apt-get install -y bbb-html5

# -- Install supervisor to run all the BigBlueButton processes (replaces systemd)
RUN apt-get install -y supervisor
RUN mkdir -p /var/log/supervisor
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# -- Modify FreeSWITCH event_socket.conf.xml to listen to IPV4
ADD mod/event_socket.conf.xml /opt/freeswitch/etc/freeswitch/autoload_configs


# -- Finish startup
ADD setup.sh /root/setup.sh
ENTRYPOINT ["/root/setup.sh"]
CMD []

Voici donc mon fichier docker-compose. Mais ce fichier n'a pas fonctionné. Je manque de connaissances et de qualifications.

version: '3'
services:
  bigbluebutton:
    build: .
    image: bigbluebutton/bigbluebutton
    ports:
       - "80:80"
    expose:
    - "1935/tcp"
    - "5066/tcp"
    - "2202"

Merci pour vos réponses.

2
Inv0k-er

vous avez juste besoin des lignes ci-dessous dans Docker Files car bbb doit être configuré et ce code passe cette étape;

 `-RUN apt-get install -y bigbluebutton(remove)
 +RUN apt-get install -y bigbluebutton || :
 +RUN gem install bundler -v 1.16.1
 +RUN apt-get install -y bigbluebutton
  RUN apt-get install -y bbb-demo`

ce n'est pas simplement une erreur de compilation.

1
Servet TAS