Skip to content

Commit 45bbd94

Browse files
committed
refactor(env): Shorten usage examples for brevity
1 parent 07e151f commit 45bbd94

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/dda/env/dev/types/linux_container.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ class LinuxContainerConfig(DeveloperEnvironmentConfig):
7676
Additional host directories to be mounted into the dev env. This option may be supplied multiple
7777
times, and has the same syntax as the `-v/--volume` flag of `docker run`. Examples:
7878
79-
- `./some-repo:/root/repos/some-repo` (bind mount from relative path on host to container)
80-
- `/tmp/some-location:/location:ro` (bind mount from absolute path on host to container with read-only flag)
81-
- `~/projects:/root/projects:ro` (bind mount from absolute path on host to container with read-only flag)
79+
- `./some-repo:/root/repos/some-repo`
80+
- `/tmp/some-location:/location:ro`
81+
- `~/projects:/root/projects:ro`
8282
8383
8484
> **WARNING:**
@@ -103,11 +103,9 @@ class LinuxContainerConfig(DeveloperEnvironmentConfig):
103103
Additional mounts to be added to the dev env. These can be either bind mounts from the host or Docker volume mounts.
104104
This option may be supplied multiple times, and has the same syntax as the `-m/--mount` flag of `docker run`. Examples:
105105
106-
- `type=bind,src=/tmp/some-location,dst=/location` (bind mount from absolute path on host to container)
107-
- `type=bind,src=./some-location,dst=/location` (bind mount from relative path on host to container)
108-
- `type=volume,src=some-volume,dst=/location` (volume mount from named volume to container)
109-
- `type=bind,src=/tmp/some-location,dst=/location,ro` (bind mount from absolute path on host to container with read-only flag)
110-
- `type=bind,src=/tmp/some-location,dst=/location,bind-propagation=rslave` (bind mount from absolute path on host to container with bind propagation flag)
106+
- `type=bind,src=/tmp/some-location,dst=/location`
107+
- `type=volume,src=some-volume,dst=/location`
108+
- `type=bind,src=/tmp/some-location,dst=/location,bind-propagation=rslave`
111109
"""
112110
),
113111
"callback": __validate_extra_mount_specs,

0 commit comments

Comments
 (0)