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

docker: create a toolbox volume for every pod #193

Merged
merged 1 commit into from
Jan 13, 2020

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Jan 10, 2020

Instead of doing the current hack of copying the agola toolbox inside the host
tmp dir (always done but only needed when running the executor inside a docker
container) that has different issues (like tmp file removal done by
tmpwatch/systemd-tmpfiles), use a solution similar to the k8s driver: for every
pod create a volume containing the agola-toolbox and remove it at pod removal.

We could also use a single "global" volume but we should handle cases like
volume removal (i.e. a docker volume prune command). So for now just create a
dedicated per pod volume.

Instead of doing the current hack of copying the agola toolbox inside the host
tmp dir (always done but only needed when running the executor inside a docker
container) that has different issues (like tmp file removal done by
tmpwatch/systemd-tmpfiles), use a solution similar to the k8s driver: for every
pod create a volume containing the agola-toolbox and remove it at pod removal.

We could also use a single "global" volume but we should handle cases like
volume removal (i.e. a docker volume prune command). So for now just create a
dedicated per pod volume.
@sgotti sgotti requested a review from camandel January 10, 2020 11:27
Copy link
Contributor

@camandel camandel left a comment

Choose a reason for hiding this comment

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

LGTM

@sgotti sgotti merged commit 180d8dd into agola-io:master Jan 13, 2020
@sgotti sgotti deleted the executor_docker_toolbox_volume branch February 19, 2020 09:06
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…olume

docker: create a toolbox volume for every pod
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
…olume

docker: create a toolbox volume for every pod
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.

2 participants