Skip to content
Snippets Groups Projects
Rene Fernandez Sanchez's avatar
Rene Fernandez Sanchez authored
Qa

See merge request webcast/webcast-central-encoder!303
ae516ab6
History

Webcast Central Encoding System (CES)

This application is used to control the encoders in the rooms (Matrox devices) and handle the publication of a video to Opencast.

Technologies

  • Python 3.6

  • Flask

  • Celery

  • Redis

  • Filebeat

Dependencies

  • Cernmedia servers (cernmedia33)
  • Opencast
  • Indico
  • CDS
  • Gitlab
  • Harbor

Docs

Documents

Development

Using Docker

docker compose up
docker compose run web bash
docker stop $(docker ps -a -q)

Using local development

Required Python version: 3.8.x (Other version might require changes on the requirements)

python3 -m venv ./env

Initialize the database

Run the following command to create the tables in the database

flask db upgrade

Updating the database

If for some reason there are changes in the models, you can you the following commands in order to update the database"

cd app
flask db migrate -m "message"
flask db upgrade

This actions needs to be don on all the databases affected.

If for some reason, the command doesn't finish, it is possible to run the SQL manually:

flask db upgrade --sql

The command above will output the SQL, that can be used on the SQL editor.

Configuration

Configuration parameters can be reviewed on the secret/config.sample.py file.