edumeet / edumeet-docker

eduMEET in docker container for version (4.x)
https://edumeet.org
MIT License
54 stars 42 forks source link

Docker deploy and build process overhaul #29

Closed sd4v1d closed 2 years ago

sd4v1d commented 2 years ago

Since there was changes in upstream edumeet (develop) repository (eg. getListenIP function moved from config.js), some changes has to be made in Docker build and deploy workflow. Following patches was introduced:

- build image from 14-bullseye-slim node image bullseye is current Debian stable distribution

- use yarn instead npm yarn is recommended by upstream edumeet repository

- split deploy and build docker-compose configuration Current docker-compose.yml configuration doesn't check if there is available edumeet image on docker hub, and always build new image instead pulling. By moving build configuration to separate docker-compose-build.yml, docker-compose will pull edumeet image from docker hub repository which will speedup installation process, specially when installing multiple edumeet instances (eg. ansible)

- disable ouroboros container auto-installation Ouroboros will automatically pull new image from docker hub repository, which in some cases, can cause problems if there is some error, or some configuration changes (eg. if develop branch is used). Ouroboros is commented in docker-compose.yml so it can be enabled if automatic docker image update is required.

- improve redis password generation logic Improved script with feature to automatically replace default word _GENERATED_REDIS_PASSWORD_ with encrypted password.

- add configuration setup script Included additional script, which downloads current config.example.js files, and create config.js file if there is no custom one.

- add minimal server configuration options in config.yaml file Introduced minimal set of configuration options to start service

- removed config.js files ...to be compatible with configuration script

- updated README.md Updated, according additional setup steps and new configuration type.

misi commented 2 years ago

Sorry for the delayed review..