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

feat: use an "init service" to load the apparmor profile #63

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MoisesGSalas
Copy link
Member

This follows the same logic as the "permissions" service used by tutor core. The codejail-apparmor-loader service runs the command used previously by the init job.

It makes more sense to handling loading of the apparmor profile with an init service:

  • The profile is ephemeral, rebooting the host will require to load it again.
  • The profile is a dependency for the container to start. Things like database migrations, which are the main use case for init jobs, don't block the start of the main service container.

This follows the same logic as the "permissions" service used by tutor
core. The `codejail-apparmor-loader` service runs the command used
previously by the init job.

It makes more sense to handling loading of the apparmor profile with an
init service:

- The profile is ephemeral, rebooting the host will require to load it
  again.
- The profile is a dependency for the container to start. Things like
  database migrations, which are the main use case for init jobs, don't
  block the start of the main service container.
@MoisesGSalas MoisesGSalas force-pushed the mgs/use-init-container branch from fd8056e to 9a11838 Compare December 19, 2024 19:05
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.

1 participant