Merge pull request #10 from gustavotrott/main
Mount /tmp in container and stop mounting ~/shared and /var/lib/docker
This commit is contained in:
commit
eecb1b5824
@ -66,7 +66,12 @@ ssh bbb26
|
|||||||
Replace **bbb26** with the {name} param of `create_bbb.sh`
|
Replace **bbb26** with the {name} param of `create_bbb.sh`
|
||||||
|
|
||||||
|
|
||||||
That's all, open https://bbb26.test in your browser and enjoy.
|
### Use `/tmp` to exchange files
|
||||||
|
The directory `/tmp` is shared between the host and the container. So you can use this directory to exchange files between them.
|
||||||
|
|
||||||
|
### Start using BigBlueButton
|
||||||
|
|
||||||
|
That's all, open https://bbb26.test (or your custom `https://{name}.{domain}`) in your browser and enjoy.
|
||||||
|
|
||||||
PS: if you see certificate error in your browser, you need to add the CA certificate in it's trusted certificates. Instructions for Chrome and Firefox can be found [here](https://github.com/bigbluebutton/docker-dev/issues/1)
|
PS: if you see certificate error in your browser, you need to add the CA certificate in it's trusted certificates. Instructions for Chrome and Firefox can be found [here](https://github.com/bigbluebutton/docker-dev/issues/1)
|
||||||
|
|
||||||
|
@ -54,11 +54,6 @@ for container_id in $(docker ps -f name=$NAME -q -a); do
|
|||||||
docker rm $container_id;
|
docker rm $container_id;
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$(docker volume ls | grep \docker_in_docker${NAME}$)" ]; then
|
|
||||||
echo "Removing volume docker_in_docker$NAME"
|
|
||||||
sudo docker volume rm docker_in_docker$NAME;
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove entries from ~/.ssh/config
|
# Remove entries from ~/.ssh/config
|
||||||
if [ -f ~/.ssh/config ] ; then
|
if [ -f ~/.ssh/config ] ; then
|
||||||
sed -i '/^Host '"$NAME"'$/,/^$/d' ~/.ssh/config
|
sed -i '/^Host '"$NAME"'$/,/^$/d' ~/.ssh/config
|
||||||
@ -144,10 +139,6 @@ fi
|
|||||||
|
|
||||||
cd
|
cd
|
||||||
|
|
||||||
#Shared folder to exchange data between local machine and container
|
|
||||||
BBB_SHARED_FOLDER=$HOME/$NAME/shared
|
|
||||||
mkdir -p $BBB_SHARED_FOLDER
|
|
||||||
|
|
||||||
###Certificate start -->
|
###Certificate start -->
|
||||||
mkdir $HOME/$NAME/certs/ -p
|
mkdir $HOME/$NAME/certs/ -p
|
||||||
if [ $CERT_DIR ] ; then
|
if [ $CERT_DIR ] ; then
|
||||||
@ -236,7 +227,7 @@ fi
|
|||||||
mkdir -p $HOME/.m2/repository/org/bigbluebutton
|
mkdir -p $HOME/.m2/repository/org/bigbluebutton
|
||||||
mkdir -p $HOME/.ivy2/local/org.bigbluebutton
|
mkdir -p $HOME/.ivy2/local/org.bigbluebutton
|
||||||
|
|
||||||
docker run -d --name=$NAME --hostname=$HOSTNAME $NETWORKPARAMS -env="container=docker" --env="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" --env="DEBIAN_FRONTEND=noninteractive" -v "/var/run/docker.sock:/var/run/docker.sock:rw" --cap-add="NET_ADMIN" --privileged -v "$HOME/$NAME/certs/:/local/certs:rw" --cgroupns=host -v "$BBB_SRC_FOLDER:/home/bigbluebutton/src:rw" -v "$BBB_SHARED_FOLDER:/home/bigbluebutton/shared:rw" -v "$HOME/.m2/repository/org/bigbluebutton:/home/bigbluebutton/.m2/repository/org/bigbluebutton:rw" -v "$HOME/.ivy2/local/org.bigbluebutton:/home/bigbluebutton/.ivy2/local/org.bigbluebutton:rw" -v docker_in_docker$NAME:/var/lib/docker -t $IMAGE
|
docker run -d --name=$NAME --hostname=$HOSTNAME $NETWORKPARAMS -env="container=docker" --env="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" --env="DEBIAN_FRONTEND=noninteractive" -v "/var/run/docker.sock:/docker.sock:rw" --cap-add="NET_ADMIN" --privileged -v "$HOME/$NAME/certs/:/local/certs:rw" --cgroupns=host -v "$BBB_SRC_FOLDER:/home/bigbluebutton/src:rw" -v "/tmp:/tmp:rw" -v "$HOME/.m2/repository/org/bigbluebutton:/home/bigbluebutton/.m2/repository/org/bigbluebutton:rw" -v "$HOME/.ivy2/local/org.bigbluebutton:/home/bigbluebutton/.ivy2/local/org.bigbluebutton:rw" -t $IMAGE
|
||||||
|
|
||||||
mkdir $HOME/.bbb/ &> /dev/null
|
mkdir $HOME/.bbb/ &> /dev/null
|
||||||
echo "docker exec -u bigbluebutton -w /home/bigbluebutton/ -it $NAME /bin/bash -l" > $HOME/.bbb/$NAME.sh
|
echo "docker exec -u bigbluebutton -w /home/bigbluebutton/ -it $NAME /bin/bash -l" > $HOME/.bbb/$NAME.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user