-
-
Notifications
You must be signed in to change notification settings - Fork 44
Update configurability and docker documentation #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f31d990
Update docker image structure to match new convention
PGijsbers aeafc8a
Make configuration and dot files configurable
PGijsbers 2d42e9a
Push docker readme file to Docker Hub on publish
PGijsbers 26891c9
Add a README for the docker image
PGijsbers 9e26db9
Update variable name after rename
PGijsbers 5cf246e
fix typo
PGijsbers db431b1
Minor fixes
PGijsbers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # OpenML REST API | ||
| This is the work-in-progress Python-based REST API implementation for OpenML. | ||
| This should not be considered production ready. | ||
| New releases may contain breaking changes without deprecation warnings. | ||
|
|
||
| ## Usage | ||
| The image is not intended to be used as a standalone image. | ||
| 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. | ||
|
|
||
| ## Configuration | ||
| Configuration is currently loaded from both a TOML file and a .env file. | ||
| Environment variables are used for configurations that either shouldn't be shared (secrets), or that inform how to load the configuration. | ||
| The TOML configuration file is used for all other settings. | ||
| By default both of these files are loaded from the `/config` directory. | ||
|
|
||
| ### Configuration File | ||
| A default configuration is available for reference at `/config/config.toml`, and can be used as reference. | ||
|
|
||
| ### Environment Variables | ||
| Environment variables are used for configurations that either shouldn't be shared (secrets), or that inform how to load the configuration: | ||
|
|
||
| - `OPENML_REST_API_CONFIG_DIRECTORY`: points to the directory that contains configuration files (`config.toml`, `.env`) (default: `/config`) | ||
| - `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`. | ||
| - `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`. | ||
| - `OPENML_DATABASES_OPENML_USERNAME`: username for connecting to the `openml` database (default: `root`) | ||
| - `OPENML_DATABASES_OPENML_PASSWORD`: password for connecting to the `openml` database (default: `ok`) | ||
| - `OPENML_DATABASES_EXPDB_USERNAME`: username for connecting to the `openml_expdb` database (default: `root`) | ||
| - `OPENML_DATABASES_EXPDB_PASSWORD`: password for connecting to the `openml_expdb` database (default: `ok`) | ||
|
|
||
|
|
||
| ## Repository | ||
| The code and dockerfile for this image are maintained [on GitHub](https://www.github.com/openml/server-api). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.