fix(daytona): add missing config mappings in gateway, CLI defaults, and config display
Signed-off-by: rovle <lovre.pesut@gmail.com>
This commit is contained in:
parent
577da79a47
commit
5279540bb4
3 changed files with 8 additions and 1 deletions
1
cli.py
1
cli.py
|
|
@ -157,6 +157,7 @@ def load_cli_config() -> Dict[str, Any]:
|
||||||
"docker_image": "python:3.11",
|
"docker_image": "python:3.11",
|
||||||
"singularity_image": "docker://python:3.11",
|
"singularity_image": "docker://python:3.11",
|
||||||
"modal_image": "python:3.11",
|
"modal_image": "python:3.11",
|
||||||
|
"daytona_image": "nikolaik/python-nodejs:python3.11-nodejs20",
|
||||||
},
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"inactivity_timeout": 120, # Auto-cleanup inactive browser sessions after 2 min
|
"inactivity_timeout": 120, # Auto-cleanup inactive browser sessions after 2 min
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ if _config_path.exists():
|
||||||
"docker_image": "TERMINAL_DOCKER_IMAGE",
|
"docker_image": "TERMINAL_DOCKER_IMAGE",
|
||||||
"singularity_image": "TERMINAL_SINGULARITY_IMAGE",
|
"singularity_image": "TERMINAL_SINGULARITY_IMAGE",
|
||||||
"modal_image": "TERMINAL_MODAL_IMAGE",
|
"modal_image": "TERMINAL_MODAL_IMAGE",
|
||||||
|
"daytona_image": "TERMINAL_DAYTONA_IMAGE",
|
||||||
"ssh_host": "TERMINAL_SSH_HOST",
|
"ssh_host": "TERMINAL_SSH_HOST",
|
||||||
"ssh_user": "TERMINAL_SSH_USER",
|
"ssh_user": "TERMINAL_SSH_USER",
|
||||||
"ssh_port": "TERMINAL_SSH_PORT",
|
"ssh_port": "TERMINAL_SSH_PORT",
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,8 @@ DEFAULT_CONFIG = {
|
||||||
"docker_image": "nikolaik/python-nodejs:python3.11-nodejs20",
|
"docker_image": "nikolaik/python-nodejs:python3.11-nodejs20",
|
||||||
"singularity_image": "docker://nikolaik/python-nodejs:python3.11-nodejs20",
|
"singularity_image": "docker://nikolaik/python-nodejs:python3.11-nodejs20",
|
||||||
"modal_image": "nikolaik/python-nodejs:python3.11-nodejs20",
|
"modal_image": "nikolaik/python-nodejs:python3.11-nodejs20",
|
||||||
# Container resource limits (docker, singularity, modal — ignored for local/ssh)
|
"daytona_image": "nikolaik/python-nodejs:python3.11-nodejs20",
|
||||||
|
# Container resource limits (docker, singularity, modal, daytona — ignored for local/ssh)
|
||||||
"container_cpu": 1,
|
"container_cpu": 1,
|
||||||
"container_memory": 5120, # MB (default 5GB)
|
"container_memory": 5120, # MB (default 5GB)
|
||||||
"container_disk": 51200, # MB (default 50GB)
|
"container_disk": 51200, # MB (default 50GB)
|
||||||
|
|
@ -753,6 +754,10 @@ def show_config():
|
||||||
print(f" Modal image: {terminal.get('modal_image', 'python:3.11')}")
|
print(f" Modal image: {terminal.get('modal_image', 'python:3.11')}")
|
||||||
modal_token = get_env_value('MODAL_TOKEN_ID')
|
modal_token = get_env_value('MODAL_TOKEN_ID')
|
||||||
print(f" Modal token: {'configured' if modal_token else '(not set)'}")
|
print(f" Modal token: {'configured' if modal_token else '(not set)'}")
|
||||||
|
elif terminal.get('backend') == 'daytona':
|
||||||
|
print(f" Daytona image: {terminal.get('daytona_image', 'nikolaik/python-nodejs:python3.11-nodejs20')}")
|
||||||
|
daytona_key = get_env_value('DAYTONA_API_KEY')
|
||||||
|
print(f" API key: {'configured' if daytona_key else '(not set)'}")
|
||||||
elif terminal.get('backend') == 'ssh':
|
elif terminal.get('backend') == 'ssh':
|
||||||
ssh_host = get_env_value('TERMINAL_SSH_HOST')
|
ssh_host = get_env_value('TERMINAL_SSH_HOST')
|
||||||
ssh_user = get_env_value('TERMINAL_SSH_USER')
|
ssh_user = get_env_value('TERMINAL_SSH_USER')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue