From bbd24369c8fcdeacb96c6299895500e553d068ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=A4der?= Date: Wed, 9 Oct 2019 12:25:34 +0200 Subject: [PATCH] Updated Custom Startup Scripts (markdown) --- Custom-Startup-Scripts.md => Startup-Scripts.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) rename Custom-Startup-Scripts.md => Startup-Scripts.md (77%) diff --git a/Custom-Startup-Scripts.md b/Startup-Scripts.md similarity index 77% rename from Custom-Startup-Scripts.md rename to Startup-Scripts.md index a107846..4c1c7cb 100644 --- a/Custom-Startup-Scripts.md +++ b/Startup-Scripts.md @@ -31,4 +31,17 @@ The [wiki page "Initializers"](Initializers) explains how to use them. ## Disable Startup Scripts -The execution of the startup scripts can be prevented by setting the environment variable `SKIP_STARTUP_SCRIPTS` to `true`, e.g. in the file `env/netbox.env`. \ No newline at end of file +The execution of the startup scripts can be prevented by setting the environment variable `SKIP_STARTUP_SCRIPTS` to `true`, e.g. in the file `env/netbox.env`. + +## Custom Docker Image + +You can also build your own Netbox Docker image containing your own startup scripts, custom fields, users and groups +like this: + +```Dockerfile +ARG VERSION=latest +FROM netboxcommunity/netbox:$VERSION + +COPY startup_scripts/ /opt/netbox/startup_scripts/ +COPY initializers/ /opt/netbox/initializers/ +``` \ No newline at end of file