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

restructure init to allow for plugins as mods #61

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Conversation

aptalca
Copy link
Member

@aptalca aptalca commented Aug 27, 2024

Currently, netbox scripts (such as migrate) are run during init, before any mod scripts. This behavior prevents installing plugins as mods because in a fresh/recreated container, the plugin won't exist until the mods stage, but the plugin would be referenced in netbox config, leading to init errors when netbox migration runs.

This PR splits those init steps into a oneshot service (svc-netbox-prepare) that runs after the mods are applied, but before the main netbox service is started.

Ref: linuxserver/docker-mods#944

@aptalca aptalca requested a review from a team August 27, 2024 00:59
@LinuxServer-CI
Copy link
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/netbox/v4.0.9-pkg-eef91fa3-dev-d175a8dea405a7e861789420e59f4e35a05e5531-pr-61/index.html
https://ci-tests.linuxserver.io/lspipepr/netbox/v4.0.9-pkg-eef91fa3-dev-d175a8dea405a7e861789420e59f4e35a05e5531-pr-61/shellcheck-result.xml

Tag Passed
amd64-v4.0.9-pkg-eef91fa3-dev-d175a8dea405a7e861789420e59f4e35a05e5531-pr-61
arm64v8-v4.0.9-pkg-eef91fa3-dev-d175a8dea405a7e861789420e59f4e35a05e5531-pr-61

@LinuxServer-CI
Copy link
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/netbox/v4.0.9-pkg-eef91fa3-dev-b45c949faaaa8e1b8afc751bf8821971b1cd9bcf-pr-61/index.html
https://ci-tests.linuxserver.io/lspipepr/netbox/v4.0.9-pkg-eef91fa3-dev-b45c949faaaa8e1b8afc751bf8821971b1cd9bcf-pr-61/shellcheck-result.xml

Tag Passed
amd64-v4.0.9-pkg-eef91fa3-dev-b45c949faaaa8e1b8afc751bf8821971b1cd9bcf-pr-61
arm64v8-v4.0.9-pkg-eef91fa3-dev-b45c949faaaa8e1b8afc751bf8821971b1cd9bcf-pr-61

@aptalca aptalca merged commit 3f0a283 into master Aug 27, 2024
4 checks passed
@aptalca aptalca deleted the init-restructure branch August 27, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants