Skip to content

Commit 864cf04

Browse files
authored
Release 0.5.0 (#205)
This is the PR for the release `0.5.0`
2 parents ca50f05 + 1c8046a commit 864cf04

72 files changed

Lines changed: 3899 additions & 3192 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.dist.compose

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ ODTP_SECRET_KEY=
1717
# your github token
1818
GITHUB_TOKEN=
1919

20+
# odtp password
21+
ODTP_PASSWORD=
22+
2023
# mongodb user and password
2124
MONGO_DB_USER=
2225
MONGO_DB_PASSWORD=
@@ -40,8 +43,5 @@ ODTP_LOG_LEVEL=ERROR
4043
# Log Level when running executions
4144
RUN_LOG_LEVEL=INFO
4245

43-
# App Path
44-
APP_PATH=
45-
46-
# Install the package in editable mode.
47-
PIP_INSTALL_ARGS="--editable"
46+
# set to False if your docker installation does not allow the flag --gpus all
47+
ALLOW_DOCKER_GPUS=False

.env.dist.compose.dev

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ ODTP_SECRET_KEY=
1818
# your github token
1919
GITHUB_TOKEN=
2020

21+
# odtp password
22+
ODTP_PASSWORD=
23+
2124
# mongodb user and password
2225
MONGO_DB_USER=
2326
MONGO_DB_PASSWORD=
@@ -46,3 +49,6 @@ APP_PATH=
4649

4750
# Install the package in editable mode.
4851
PIP_INSTALL_ARGS="--editable"
52+
53+
# set to False if your docker installation does not allow the flag --gpus all
54+
ALLOW_DOCKER_GPUS=False

.env.dist.local

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ ODTP_SECRET_KEY=
2222
# your github token
2323
GITHUB_TOKEN=
2424

25+
# odtp password
26+
ODTP_PASSWORD=
27+
2528
# Dashboard parameters
2629
ODTP_DASHBOARD_PORT=
2730
ODTP_DASHBOARD_JSON_EDITOR=
@@ -34,3 +37,6 @@ ODTP_LOG_LEVEL=ERROR
3437

3538
# Log Level when running executions
3639
RUN_LOG_LEVEL=INFO
40+
41+
# set to False if your docker installation does not allow the flag --gpus all
42+
ALLOW_DOCKER_GPUS=False

CHANGELOG.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
11
## Changelog
22

3+
- v0.5.0
4+
- gui and cli: making partial executions possible
5+
- gui: allow to upload and store secret files per user. These files are then stored encrypted in the
6+
users working directory and the user can link them to execution runs
7+
- gui and cli: odtp.yml is now parsed when a component version is added and the default parameters are
8+
stored. Therefore when an execution is created it is preset with the default parameter and port values.
9+
These can be overwritten during execution runs.
10+
- gui and cli: workflows are added as step between component versions and execution: a workflow is the
11+
sequence of component versions. Workflows are not user owned and can be shared between users in the same
12+
way as component versions are shared
13+
- gui: gui allows now to deprecate workflows, executions and component versions. Deprecated items are
14+
no longer offered in selects. Items can be deprecated and also reactivated
15+
- env: an additional env variable is added ALLOW_DOCKER_GPUS that must be set to false if the used Docker
16+
version does not allow GPU settings such as
317
- v0.4.0
418
- gui: the general workflow for the user was improved (new Items are selected automatically for example)
519
- gui: validation has been implemented in the forms to make sure data that is entered will be valid
620
- gui: the run page for executions has been improved in the gui: logs are now also available from the gui when a workflow runs
721
- gui: on the dashboard homepage you can now directly see whether all services including github are connected
822
- gui: the workarea in the dashboard was removed and replace by an info section on top of the pages
9-
- logging: improve logging at GUI/CLI: run commands are now logged to a file, while everything else is still logged to the command line: this is so run commands can be easier debugged by knowing what was run in docker and how that run was triggered
23+
- logging: improve logging at GUI/CLI: run commands are now logged to a file, while everything else is still logged to the command line: this is so run commands can be easier debugged by knowing what was run in docker and how that run was triggered
1024
- logging: the logs of the execution runs are now exposed as volumes, so that will be directly available when the component starts and will remain in the project path even after a component exited prematurely
1125
- execution: execution and step timestamps
1226
- cli: printing table from mongodb colleciton
13-
- cli: delete methods for execution and related items.
27+
- cli: delete methods for execution and related items.
1428
- components: avoid rebuilding image if component is available
1529
- compose: a dev version for docker compose has been added to facilitate development
1630

17-
- v0.3.1
31+
- v0.3.1
1832
- hotfixes for bugs
1933
- removal of unused dependencies and adition of pandas
2034

@@ -24,7 +38,7 @@
2438
- the execution run page is now only accessible via the execution
2539
- the workflow in the dashboard has been improved
2640
- the docker compose setup has now a dev and a prod file
27-
- log levels for dashboard and docker runs can now be set separately
41+
- log levels for dashboard and docker runs can now be set separately
2842

2943
- v0.2.8: bug fixes and settings updates
3044

compose.dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ services:
2323
ODTP_ACCESS_KEY: ${ODTP_ACCESS_KEY}
2424
ODTP_SECRET_KEY: ${ODTP_SECRET_KEY}
2525
GITHUB_TOKEN: ${GITHUB_TOKEN}
26+
ODTP_PASSWORD: ${ODTP_PASSWORD}
2627
ODTP_MONGO_DB: ${ODTP_MONGO_DB}
2728
ODTP_DASHBOARD_PORT: ${ODTP_DASHBOARD_PORT}
2829
ODTP_DASHBOARD_RELOAD: ${ODTP_DASHBOARD_RELOAD}
29-
ODTP_DASHBOARD_JSON_EDITOR: ${ODTP_DASHBOARD_JSON_EDITOR}
3030
ODTP_LOG_LEVEL: ${ODTP_LOG_LEVEL}
3131
RUN_LOG_LEVEL: ${RUN_LOG_LEVEL}
32+
ALLOW_DOCKER_GPUS: ${ALLOW_DOCKER_GPUS:-True}
3233

3334
stdin_open: true
3435
tty: true

compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ services:
1919
ODTP_ACCESS_KEY: ${ODTP_ACCESS_KEY}
2020
ODTP_SECRET_KEY: ${ODTP_SECRET_KEY}
2121
GITHUB_TOKEN: ${GITHUB_TOKEN}
22+
ODTP_PASSWORD: ${ODTP_PASSWORD}
2223
ODTP_MONGO_DB: ${ODTP_MONGO_DB}
2324
ODTP_DASHBOARD_PORT: ${ODTP_DASHBOARD_PORT}
24-
ODTP_DASHBOARD_JSON_EDITOR: ${ODTP_DASHBOARD_JSON_EDITOR}
2525
ODTP_LOG_LEVEL: ${ODTP_LOG_LEVEL}
2626
RUN_LOG_LEVEL: ${RUN_LOG_LEVEL}
27+
ALLOW_DOCKER_GPUS: ${ALLOW_DOCKER_GPUS:-True}
2728

2829
stdin_open: true
2930
tty: true

odtp/cli/component.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ def prepare(
2626
image_name: str = typer.Option(
2727
..., "--image_name", help="Specify the name of the component image"
2828
),
29+
image_link: str = typer.Option(
30+
None, "--image_link", help="Specify the name of the component image link"
31+
),
2932
repository: str = typer.Option(
3033
..., "--repository", help="Specify the git repository url"
3134
),
3235
):
3336
try:
3437
componentManager = DockerManager(
3538
repo_url=repository,
36-
image_name=image_name,
39+
image_name=image_name,
40+
image_link=image_link,
3741
project_folder=folder
3842
)
3943
componentManager.prepare_component()
@@ -51,9 +55,9 @@ def run(
5155
image_name: str = typer.Option(
5256
..., "--image_name", help="Specify the name of the component image"
5357
),
54-
instance_name: str = typer.Option(
55-
..., "--instance_name", help="Specify the name of the instance"
56-
),
58+
container_name: str = typer.Option(
59+
..., "--container_name", help="Specify the name of the container"
60+
),
5761
repository: str = typer.Option(
5862
..., "--repository", help="Specify the git repository url"
5963
),
@@ -62,6 +66,9 @@ def run(
6266
)] = None,
6367
parameter_file: Annotated[str, typer.Option(
6468
help="Specify the path to the environment file"
69+
)] = None,
70+
secrets_file: Annotated[str, typer.Option(
71+
help="Specify the path to the secrets file"
6572
)] = None,
6673
ports: Annotated[str, typer.Option(
6774
help="Specify port mappings separated by a plus sign i.e. 8501:8501+8201:8201"
@@ -76,10 +83,12 @@ def run(
7683
)
7784
ports = odtp_parse.parse_port_mappings_for_one_component(ports)
7885
parameters = odtp_parse.parse_parameters_for_one_file(parameter_file)
86+
secrets = odtp_parse.parse_parameters_for_one_file(secrets_file)
7987
componentManager.run_component(
80-
parameters=parameters,
88+
parameters=parameters,
89+
secrets=secrets,
8190
ports=ports,
82-
instance_name=instance_name
91+
container_name=container_name
8392
)
8493
except Exception as e:
8594
log.error(f"ERROR: Run of component failed: {e}")

0 commit comments

Comments
 (0)