Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions caliban/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,6 @@
"c_home": container_home(),
"creds_dir": CREDS_DIR
})
dockerfile += _credentials_entries(uid,
gid,
adc_path=adc_path,
credentials_path=credentials_path)

dockerfile += _dependency_entries(workdir,
uid,
Expand All @@ -553,19 +549,24 @@
conda_env_path=conda_env_path,
setup_extras=setup_extras)

if inject_notebook.value != 'none':
install_lab = inject_notebook == NotebookInstall.lab
dockerfile += _notebook_entries(lab=install_lab, version=jupyter_version)

if extra_dirs is not None:
dockerfile += _extra_dir_entries(workdir, uid, gid, extra_dirs)

dockerfile += _custom_packages(uid,
gid,
packages=c.apt_packages(
caliban_config, job_mode),
shell=shell)

if extra_dirs is not None:
dockerfile += _extra_dir_entries(workdir, uid, gid, extra_dirs)

Check warning on line 559 in caliban/docker.py

View check run for this annotation

Codecov / codecov/patch

caliban/docker.py#L558-L559

Added lines #L558 - L559 were not covered by tests

if inject_notebook.value != 'none':
install_lab = inject_notebook == NotebookInstall.lab
dockerfile += _notebook_entries(lab=install_lab, version=jupyter_version)

Check warning on line 563 in caliban/docker.py

View check run for this annotation

Codecov / codecov/patch

caliban/docker.py#L561-L563

Added lines #L561 - L563 were not covered by tests

dockerfile += _credentials_entries(uid,

Check warning on line 565 in caliban/docker.py

View check run for this annotation

Codecov / codecov/patch

caliban/docker.py#L565

Added line #L565 was not covered by tests
gid,
adc_path=adc_path,
credentials_path=credentials_path)

if package is not None:
# The actual entrypoint and final copied code.
dockerfile += _package_entries(workdir, uid, gid, package)
Expand Down