Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Mount /var/folders to finch vm #525

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

vsiravar
Copy link
Contributor

@vsiravar vsiravar commented Aug 9, 2023

Issue #, if available:
#297

Description of changes:
Mount /var/folders into finch vm automatically to improve compatibility with docker.

Docker mount directories
image

Testing done:
Yes

  • 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.

Copy link
Contributor

@weikequ weikequ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I think this is a great idea as it might help with getting eventual vscode integration as well. See issue: #387. Is there any security concerns with respect to the vm/containers having access to these temp folders?

Edit: Seems like there are some e2e tests failing, mainly:

Run a container image [BeforeEach] when running a container with volume flags

@vsiravar
Copy link
Contributor Author

vsiravar commented Aug 9, 2023

Thanks for this! I think this is a great idea as it might help with getting eventual vscode integration as well. See issue: #387. Is there any security concerns with respect to the vm/containers having access to these temp folders?

Thanks for the additional context about vscode integration, it would very cool to have finch integrate with vscode.

Regarding security concerns, there is not a lot of Apple Documentation about /var/folders but I did find some useful posts

Signed-off-by: Vishwas Siravara <[email protected]>
@mharwani
Copy link
Member

Thanks for this change. I know /var/folders was chosen specifically to address #297, but are there any concerns with adding other directories listed in the screenshot as well?

@vsiravar
Copy link
Contributor Author

Thanks for this change. I know /var/folders was chosen specifically to address #297, but are there any concerns with adding other directories listed in the screenshot as well?

Apart from /tmp which would hide the system /tmp in the vm all others can be mounted. lima-vm/lima#571. To bypass mounting /tmp from macOS we can mount /private/tmp since readlink /tmp =>
private/tmp. Maybe can add this to a subsequent PR.

@vsiravar vsiravar merged commit c97d2e9 into runfinch:main Aug 14, 2023
14 checks passed
KevinLiAWS pushed a commit that referenced this pull request Aug 16, 2023
🤖 I have created a release *beep* *boop*
---


## [0.8.0](v0.7.0...v0.8.0)
(2023-08-16)


### Features

* adding config option for SOCI installation on VM
([#506](#506))
([a2e077b](a2e077b))


### Bug Fixes

* configure aws creds in sync submodules/deps action
([#518](#518))
([b67452e](b67452e))
* give pull request write permissions to sync job
([#520](#520))
([55b5235](55b5235))
* give token write perms to sync-submodules
([#519](#519))
([8b639ea](8b639ea))
* Mount /var/folders to finch vm
([#525](#525))
([c97d2e9](c97d2e9))
* option to use installed lima for SOCI e2e tests
([#533](#533))
([8b66659](8b66659))
* quote recursive calls to make
([#515](#515))
([d603096](d603096))
* Restart buildkit after containerd when provisioning
([#461](#461))
([fca1828](fca1828))


### Build System or External Dependencies

* **deps:** Bump github.com/docker/cli from 24.0.4+incompatible to
24.0.5+incompatible
([#495](#495))
([e9e8617](e9e8617))
* **deps:** Bump github.com/docker/docker from 24.0.4+incompatible to
24.0.5+incompatible
([#497](#497))
([6f1afbb](6f1afbb))
* **deps:** Bump github.com/lima-vm/lima from 0.16.0 to 0.17.2
([#531](#531))
([6e33d15](6e33d15))
* **deps:** Bump github.com/onsi/gomega from 1.27.8 to 1.27.10
([#496](#496))
([d08d102](d08d102))
* **deps:** Bump github.com/pkg/sftp from 1.13.5 to 1.13.6
([#530](#530))
([09b3846](09b3846))
* **deps:** Bump github.com/shirou/gopsutil/v3 from 3.23.6 to 3.23.7
([#513](#513))
([83bd718](83bd718))
* **deps:** Bump golang.org/x/tools from 0.11.0 to 0.11.1
([#509](#509))
([e826bcf](e826bcf))
* **deps:** Bump golang.org/x/tools from 0.11.1 to 0.12.0
([#523](#523))
([09d6514](09d6514))
* **deps:** Bump k8s.io/apimachinery from 0.27.3 to 0.27.4
([#487](#487))
([444bbc0](444bbc0))
* **deps:** Bump k8s.io/apimachinery from 0.27.4 to 0.28.0
([#535](#535))
([8df84cf](8df84cf))
* **deps:** Bump submodules and dependencies
([#521](#521))
([1b3ad94](1b3ad94))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants