You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update configurability and docker documentation (#245)
Updates the configuration:
- configuration directory or files can now be set through environment
variables
- the docker image will look at `/config` directory by default
- there is now docker image documentation, and it is pushed to Docker
Hub on release
I'm aware the introduced logging situation is not ideal, but that's
deferred to a follow up PR.
This is the work-in-progress Python-based REST API implementation for OpenML.
3
+
This should not be considered production ready.
4
+
New releases may contain breaking changes without deprecation warnings.
5
+
6
+
## Usage
7
+
The image is not intended to be used as a standalone image.
8
+
Please reference either the docker compose file at [server-api](https://www.github.com/openml/server-api) for development purposes, or [services](https://www.github.com/openml/services) for deployment purposes.
9
+
10
+
## Configuration
11
+
Configuration is currently loaded from both a TOML file and a .env file.
12
+
Environment variables are used for configurations that either shouldn't be shared (secrets), or that inform how to load the configuration.
13
+
The TOML configuration file is used for all other settings.
14
+
By default both of these files are loaded from the `/config` directory.
15
+
16
+
### Configuration File
17
+
A default configuration is available for reference at `/config/config.toml`, and can be used as reference.
18
+
19
+
### Environment Variables
20
+
Environment variables are used for configurations that either shouldn't be shared (secrets), or that inform how to load the configuration:
21
+
22
+
-`OPENML_REST_API_CONFIG_DIRECTORY`: points to the directory that contains configuration files (`config.toml`, `.env`) (default: `/config`)
23
+
-`OPENML_REST_API_CONFIG_FILE`: points to the file that contains the TOML configuration (default: not set). If set, takes precedence over `OPENML_REST_API_CONFIG_DIRECTORY`.
24
+
-`OPENML_REST_API_DOTENV_FILE`: points to the dot file that contains the environment variable settings (default: not set). If set, takes precedence over `OPENML_REST_API_CONFIG_DIRECTORY`.
25
+
-`OPENML_DATABASES_OPENML_USERNAME`: username for connecting to the `openml` database (default: `root`)
26
+
-`OPENML_DATABASES_OPENML_PASSWORD`: password for connecting to the `openml` database (default: `ok`)
27
+
-`OPENML_DATABASES_EXPDB_USERNAME`: username for connecting to the `openml_expdb` database (default: `root`)
28
+
-`OPENML_DATABASES_EXPDB_PASSWORD`: password for connecting to the `openml_expdb` database (default: `ok`)
29
+
30
+
31
+
## Repository
32
+
The code and dockerfile for this image are maintained [on GitHub](https://www.github.com/openml/server-api).
0 commit comments