update commands to docker compose V2

This commit is contained in:
Leonid Orsulic 2023-05-07 11:07:09 +02:00
parent 3c1e5c7bee
commit 8c1ae1e48b
12 changed files with 25 additions and 25 deletions

View File

@ -17,15 +17,15 @@ Version: 2.6.0 | [Changelog](CHANGELOG.md) | [Issues](https://github.com/bigblue
- bbb-lti - bbb-lti
## Install ## Install
1. Install docker-ce & docker-compose 1. Install docker-ce & docker-compose-plugin
1. follow instructions 1. follow instructions
* Debian: https://docs.docker.com/engine/install/debian/ * Debian: https://docs.docker.com/engine/install/debian/
* CentOS: https://docs.docker.com/engine/install/centos/ * CentOS: https://docs.docker.com/engine/install/centos/
* Fedora: https://docs.docker.com/engine/install/fedora/ * Fedora: https://docs.docker.com/engine/install/fedora/
* Ubuntu: https://docs.docker.com/engine/install/ubuntu/ * Ubuntu: https://docs.docker.com/engine/install/ubuntu/
2. Ensure docker works with `$ docker run hello-world` 2. Ensure docker works with `$ docker run hello-world`
3. Install docker-compose: https://docs.docker.com/compose/install/ 3. Install docker compose V2: https://docs.docker.com/compose/install/
4. Ensure docker-compose works and that you use a version ≥ 1.28 : `$ docker-compose --version` 4. Ensure docker compose works and that you use a version ≥ 1.28 : `$ docker compose --version`
2. Clone this repository 2. Clone this repository
```sh ```sh
$ git clone --recurse-submodules https://github.com/bigbluebutton/docker.git bbb-docker $ git clone --recurse-submodules https://github.com/bigbluebutton/docker.git bbb-docker
@ -46,11 +46,11 @@ Version: 2.6.0 | [Changelog](CHANGELOG.md) | [Issues](https://github.com/bigblue
``` ```
5. Start containers: 5. Start containers:
```bash ```bash
$ docker-compose up -d $ docker compose up -d
``` ```
6. If you use greenlight, you can create an admin account with: 6. If you use greenlight, you can create an admin account with:
```bash ```bash
$ docker-compose exec greenlight bundle exec rake admin:create $ docker compose exec greenlight bundle exec rake admin:create
``` ```
## Further How-To's ## Further How-To's

View File

@ -135,7 +135,7 @@ services:
- vol-freeswitch:/var/freeswitch/meetings - vol-freeswitch:/var/freeswitch/meetings
network_mode: host network_mode: host
logging: logging:
# reduce logs to a minimum, so `docker-compose logs -f` still works # reduce logs to a minimum, so `docker compose logs -f` still works
driver: "local" driver: "local"
options: options:
max-size: "10k" max-size: "10k"

View File

@ -42,11 +42,11 @@ RAILS_SECRET=SuperRailsSecret_SuperRailsSecret
- regenerate `docker-compose.yml` \ - regenerate `docker-compose.yml` \
`$ ./scripts/generate-compose` `$ ./scripts/generate-compose`
- build the images \ - build the images \
`$ docker-compose build` `$ docker compose build`
- you can than start it with \ - you can than start it with \
`$ docker-compose up -d` `$ docker compose up -d`
- view the logs with \ - view the logs with \
`$ docker-compose logs -f` `$ docker compose logs -f`
- and access the API via \ - and access the API via \
https://mconf.github.io/api-mate/#server=https://10.7.7.1/bigbluebutton/api&sharedSecret=SuperSecret https://mconf.github.io/api-mate/#server=https://10.7.7.1/bigbluebutton/api&sharedSecret=SuperSecret
* At some point your browser will warn you about an invalid certificate, but you can press _"Accept the Risk and Continue" / "Proceed to 10.7.7.1 (unsafe)"_ * At some point your browser will warn you about an invalid certificate, but you can press _"Accept the Risk and Continue" / "Proceed to 10.7.7.1 (unsafe)"_
@ -60,9 +60,9 @@ RAILS_SECRET=SuperRailsSecret_SuperRailsSecret
- recreate `docker-compose.yml` \ - recreate `docker-compose.yml` \
`$ ./scripts/generate-compose` `$ ./scripts/generate-compose`
* rebuild the image(s): \ * rebuild the image(s): \
`$ docker-compose build [containername]` `$ docker compose build [containername]`
* restart changes image(s): \ * restart changes image(s): \
`$ docker-compose up -d` `$ docker compose up -d`
## How to do create a new update for a newer BBB release? ## How to do create a new update for a newer BBB release?

View File

@ -23,5 +23,5 @@ docker exec -t docker_postgres_1 pg_dumpall -c -U postgres > /root/greenlight_`d
./scripts/upgrade ./scripts/upgrade
# restart updated services # restart updated services
docker-compose up -d docker compose up -d
``` ```

View File

@ -16,5 +16,5 @@ if [ ! "$ENABLE_RECORDING" == true ]; then
exit 1 exit 1
fi fi
docker-compose exec recordings bbb-record $@ docker compose exec recordings bbb-record $@
docker-compose logs --tail=15 recordings docker compose logs --tail=15 recordings

View File

@ -9,4 +9,4 @@ then
export $(cat .env | sed 's/#.*//g' | grep "FSESL_PASSWORD" | xargs) export $(cat .env | sed 's/#.*//g' | grep "FSESL_PASSWORD" | xargs)
fi fi
docker-compose exec freeswitch /opt/freeswitch/bin/fs_cli -H 10.7.7.1 -p "$FSESL_PASSWORD" docker compose exec freeswitch /opt/freeswitch/bin/fs_cli -H 10.7.7.1 -p "$FSESL_PASSWORD"

View File

@ -8,7 +8,7 @@ then
export $(cat .env | sed 's/#.*//g' | grep -E "RAILS_SECRET|POSTGRESQL_SECRET" | xargs) export $(cat .env | sed 's/#.*//g' | grep -E "RAILS_SECRET|POSTGRESQL_SECRET" | xargs)
fi fi
COMPOSE_PREFIX=$(docker-compose ps | grep postgres | awk '{print $1}' | sed 's/-postgres-1//') COMPOSE_PREFIX=$(docker compose ps | grep postgres | awk '{print $1}' | sed 's/-postgres-1//')
docker kill -s SIGKILL greenlight-v2-tmp 2>/dev/null docker kill -s SIGKILL greenlight-v2-tmp 2>/dev/null
sleep 1 sleep 1

View File

@ -31,11 +31,11 @@ fi
docker build -t alangecker/bbb-docker-base-java:latest mod/base-java docker build -t alangecker/bbb-docker-base-java:latest mod/base-java
# buld and push other images # buld and push other images
docker-compose build docker compose build
# push images # push images
docker push alangecker/bbb-docker-base-java:latest docker push alangecker/bbb-docker-base-java:latest
docker-compose push \ docker compose push \
html5-backend-1 \ html5-backend-1 \
bbb-web \ bbb-web \
freeswitch \ freeswitch \

View File

@ -208,4 +208,4 @@ echo "make sure to recreate the docker-compose.yml after each change"
echo " $ ./scripts/generate-compose" echo " $ ./scripts/generate-compose"
echo "" echo ""
echo "to start bigbluebutton run" echo "to start bigbluebutton run"
echo " $ docker-compose up -d" echo " $ docker compose up -d"

View File

@ -21,7 +21,7 @@ else
echo "" echo ""
echo "# pull newest images" echo "# pull newest images"
docker-compose pull --ignore-pull-failures docker compose pull --ignore-pull-failures
COMMIT_HASH=$(git rev-parse --short HEAD) COMMIT_HASH=$(git rev-parse --short HEAD)
@ -33,6 +33,6 @@ else
echo "we are on $COMMIT_HASH ($BRANCH_NAME)" echo "we are on $COMMIT_HASH ($BRANCH_NAME)"
echo "" echo ""
echo "use following command for restarting bbb:" echo "use following command for restarting bbb:"
echo " $ docker-compose up -d --no-build" echo " $ docker compose up -d --no-build"
echo "-------------------------------------" echo "-------------------------------------"
fi fi

View File

@ -25,14 +25,14 @@ else
echo "" echo ""
echo "# pull newest images" echo "# pull newest images"
docker-compose pull --ignore-pull-failures docker compose pull --ignore-pull-failures
echo "" echo ""
echo "# rebuild images" echo "# rebuild images"
docker build -t alangecker/bbb-docker-base-java:latest mod/base-java docker build -t alangecker/bbb-docker-base-java:latest mod/base-java
# rebuild everything which got modified # rebuild everything which got modified
docker-compose build docker compose build
COMMIT_HASH=$(git rev-parse --short HEAD) COMMIT_HASH=$(git rev-parse --short HEAD)
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
@ -43,6 +43,6 @@ else
echo "we are on $COMMIT_HASH ($BRANCH_NAME)" echo "we are on $COMMIT_HASH ($BRANCH_NAME)"
echo "" echo ""
echo "use following command for restarting bbb:" echo "use following command for restarting bbb:"
echo " $ docker-compose up -d" echo " $ docker compose up -d"
echo "-------------------------------------" echo "-------------------------------------"
fi fi

View File

@ -1,6 +1,6 @@
# after changing a tag always run following commands to apply # after changing a tag always run following commands to apply
# - ./scripts/generate-compose # - ./scripts/generate-compose
# - docker-compose build # - docker compose build
# https://gitlab.senfcall.de/senfcall-public/docker-bbb-build # https://gitlab.senfcall.de/senfcall-public/docker-bbb-build