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

Mount files db in RAM #484

Open
splakhonin opened this issue Mar 12, 2024 · 0 comments
Open

Mount files db in RAM #484

splakhonin opened this issue Mar 12, 2024 · 0 comments
Labels
improvement Improvement or new feature

Comments

@splakhonin
Copy link

Based on the following documentation it's cool to add the possibility to map database files into RAM.
https://docs.gitlab.com/runner/executors/docker.html#mount-a-directory-in-ram

`[runners.docker]

For the main container

[runners.docker.tmpfs]
"/var/lib/mysql" = "rw,noexec"

For services

[runners.docker.services_tmpfs]
"/var/lib/mysql" = "rw,noexec"`

As docker/sdk generates a docker-compose.yml, here we have a volume or tmpfs mount definition, https://docs.docker.com/compose/compose-file/compose-file-v3/#long-syntax-3

The idea is to add a configuration to switch on/off mounting map database files into RAM.

@alexanderM91 alexanderM91 added the improvement Improvement or new feature label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement or new feature
Development

No branches or pull requests

2 participants