You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add config to support additional directories (#128)
Signed-off-by: Ziwen Ning <[email protected]>
Issue #, if available:
#107
*Description of changes:*
add config to support additional directories according to the doc added
in #123
*Testing done:*
- [ X ] I've reviewed the guidance in CONTRIBUTING.md
#### License Acceptance
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Signed-off-by: Ziwen Ning <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+8-5
Original file line number
Diff line number
Diff line change
@@ -94,18 +94,21 @@ The `run` command has a `-v` option for volume mounts. See `Volume flags` under
94
94
95
95
Finch has a simple and extensible configuration. A configuration file at `${HOME}/.finch/finch.yaml` will be generated on first run. Currently, this config file has options for system resource limits for the underlying virtual machine. These default limits are generated dynamically based on the resources available on the host system, but can be changed by manually editing the config file.
96
96
97
-
Currently, the options are:
98
-
99
-
* CPUs [int]: the amount of vCPU to dedicate to the virtual machine
100
-
* Memory [string]: the amount of memory to dedicate to the virtual machine
101
-
102
97
For a full list of configuration options, check [the struct here](pkg/config/config.go#L25).
103
98
104
99
An example `finch.yaml` looks like this:
105
100
106
101
```yaml
102
+
# CPUs: the amount of vCPU to dedicate to the virtual machine. (required)
107
103
cpus: 4
104
+
# Memory: the amount of memory to dedicate to the virtual machine. (required)
108
105
memory: 4GiB
106
+
# AdditionalDirectories: the work directories that are not supported by default. In macOS, only home directory is supported by default.
107
+
# For example, if you want to mount a directory into a container, and that directory is not under your home directory,
108
+
# then you'll need to specify this field to add that directory or any ascendant of it as a work directory. (optional)
0 commit comments