time-link / timelink-py

Timelink Python Package
MIT License
3 stars 0 forks source link

Add all env configuration options to kleio_server.start method #12

Closed joaquimrcarvalho closed 9 months ago

joaquimrcarvalho commented 10 months ago

Description

timelink-py can now start the a Kleio Server in a Docker container. But not all env variables for configuration can be set in timeline.kleio.KleioServer.start()

It should be possible to add all the configuration variables, e.g.

      start_kleio_server(kleio_server_image="timelinkserver/kleio-server:stable", 
                            kleio_home_dir=".", 
                            kleio_server_port="8088", 
                            kleio_external_port="8089",  
                            kleio_server_workers="3",
                            kleio_idle_timeout=900,
                            kleio_admin_token="xpto",
                            kleio_conf_dir=None,
                            kleio_source_dir=None,
                            kleio_stru_dir=None,
                            kleio_token_db=None,
                            kleio_default_stru=None,
                            kleio_debug=None)

This could be easily implemented by adding all parameters starting with kleio_ to the environment of the container.