From 1ec6490c8fdde233ce7b5801067a298f615e4352 Mon Sep 17 00:00:00 2001 From: Tiago Daniel Jacobs Date: Mon, 9 Dec 2019 00:46:05 -0300 Subject: [PATCH] Add default password and improve README --- Dockerfile | 2 +- README.md | 24 +++++++++++++++++++++++- setup.sh | 2 ++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 832a773..7c8fb59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,7 +54,7 @@ RUN systemctl disable systemd-update-utmp.service # -- Finish startup # Add a number there to force update of files on build -RUN echo "Finishing ... @12" +RUN echo "Finishing ... @13" RUN mkdir /opt/docker-bbb/ RUN wget https://raw.githubusercontent.com/bigbluebutton/bbb-install/master/bbb-install.sh -O- | sed 's|https://\$PACKAGE_REPOSITORY|http://\$PACKAGE_REPOSITORY|g' > /opt/docker-bbb/bbb-install.sh RUN chmod 755 /opt/docker-bbb/bbb-install.sh diff --git a/README.md b/README.md index 5f97fd2..52b9ef3 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,34 @@ cp privkey.pem certs/ docker-compose build bbb NAME=bbb001 DOMAIN=bbbvm.imdt.com.br sh -c 'docker-compose run --name $NAME bbb' ``` - ## Defining an entry in your `/etc/hosts` file + +In order to access the container, you need to get the IP address of container by running the following command: + ``` docker exec -it bbb001 ifconfig eth0 ``` +After that, add a line in your `/etc/hosts` file with the full domain name specified at previous step. + +## Useful commands + +### Start container (after host reboot) +``` +docker start bbb001 +docker attach bbb001 +``` + +### Stop the container +``` +docker stop bbb001 +``` + +### Kill the container (force exit) +``` +docker kill bbb001 +``` + ## MAC users Docker for Mac OS doesn't allow direct access to container IP's. diff --git a/setup.sh b/setup.sh index fc2e8dd..cf3304d 100755 --- a/setup.sh +++ b/setup.sh @@ -26,6 +26,8 @@ mkdir /home/bbb chown bbb /home/bbb echo "bbb ALL=(ALL:ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/bbb +RUN echo "bbb:bbb" | chpasswd + ./bbb-install.sh -d -s "`hostname -f`" -v xenial-220-dev22a -a sed -i 's/::/0.0.0.0/g' /opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml