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

Request: Place *.state files in ~/.local/state/mycroft #59

Open
j1nx opened this issue Sep 19, 2024 · 2 comments
Open

Request: Place *.state files in ~/.local/state/mycroft #59

j1nx opened this issue Sep 19, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@j1nx
Copy link
Member

j1nx commented Sep 19, 2024

Add the moment the *.state files are being saved to /tmp and /tmp is mounted to ~/ovos/tmp however I would like to mount /tmp to a tmpfs such that all the different .lock and other tmp files are automatically deleted at a reboot.

I do not want to loose *.state files across reboots though, otherwise it will always install the pip packages listed within *.list files at every boot.

@j1nx
Copy link
Member Author

j1nx commented Sep 21, 2024

I noticed this is taken care of within the Alpine PR however would like to extend the request with;

can we please implement this mechanism to all container images except the ovos-gui-shell?

Even if we do not really mention it within the docs.

i am running all containers under Podman with quadlets utilizing systemd. This so there is no overhead of a container daemon.

Within that method, containers are started with the --rm and --replace flags. Keep any installed Python packages and to make sure they get re-used when the images are updated, i bind mount a volume over the user's .venv folder within the container which copies over the content from the image if the volume does not exist.

That way it also allows for an easy rest method by just "podman volune rm <venv_volume_name>" and remove the state file if needed.

Your .list / .state mechanism is perfect however can easily be also used to install any pip installable python package. The above will then also take care of keeping anything customly installed on top op the image.

(It will not influence any users that do not use it)

@goldyfruit
Copy link
Member

#61

@goldyfruit goldyfruit added the enhancement New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants