|
1 | | -# Rsync - Docker mod for openssh-server |
| 1 | +# NetBox DNS - Docker mod for installing the netbox-plugin-dns plugin for NetBox |
2 | 2 |
|
3 | | -This mod adds rsync to openssh-server, to be installed/updated during container start. |
| 3 | +This mod adds the [NetBox DNS](https://github.com/sys4/netbox-plugin-dns) plugin (PyPI: `netbox-plugin-dns`) to a netbox container. |
4 | 4 |
|
5 | | -In openssh-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:openssh-server-rsync` |
| 5 | +In netbox docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:netbox-dns` |
6 | 6 |
|
7 | | -If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:openssh-server-rsync|linuxserver/mods:openssh-server-mod2` |
| 7 | +If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:netbox-dns|linuxserver/mods:netbox-mod2` |
8 | 8 |
|
9 | | -# Mod creation instructions |
| 9 | +Update your `configuration.py` to include the plugin |
10 | 10 |
|
11 | | -* Fork the repo, create a new branch based on the branch `template`. |
12 | | -* Edit the `Dockerfile` for the mod. `Dockerfile.complex` is only an example and included for reference; it should be deleted when done. |
13 | | -* Inspect the `root` folder contents. Edit, add and remove as necessary. |
14 | | -* After all init scripts and services are created, run `find ./ -path "./.git" -prune -o \( -name "run" -o -name "finish" -o -name "check" \) -not -perm -u=x,g=x,o=x -print -exec chmod +x {} +` to fix permissions. |
15 | | -* Edit this readme with pertinent info, delete these instructions. |
16 | | -* Finally edit the `.github/workflows/BuildImage.yml`. Customize the vars for `BASEIMAGE` and `MODNAME`. Set the versioning logic and `MULTI_ARCH` if needed. |
17 | | -* Ask the team to create a new branch named `<baseimagename>-<modname>`. Baseimage should be the name of the image the mod will be applied to. The new branch will be based on the `template` branch. |
18 | | -* Submit PR against the branch created by the team. |
| 11 | +``` |
| 12 | +... |
| 13 | +# Enable installed plugins. Add the name of each plugin to the list. |
| 14 | +PLUGINS = ['netbox_dns'] |
19 | 15 |
|
| 16 | +... |
| 17 | +``` |
20 | 18 |
|
21 | | -## Tips and tricks |
| 19 | +On the next container start, the mod adds `netbox-plugin-dns` to the pip install list before NetBox runs its database migrations, and the plugin's tables will be created automatically. |
22 | 20 |
|
23 | | -* Some images have helpers built in, these images are currently: |
24 | | - * [Openvscode-server](https://github.com/linuxserver/docker-openvscode-server/pull/10/files) |
25 | | - * [Code-server](https://github.com/linuxserver/docker-code-server/pull/95) |
| 21 | +## Removal |
| 22 | + |
| 23 | +Before removing `DOCKER_MODS`, remove `'netbox_dns'` from the `PLUGINS` list in your `configuration.py`. Otherwise NetBox will fail to start because the plugin package will no longer be installed but is still referenced in the configuration. |
0 commit comments