Include Initializers

Initializers are startup scripts for common tasks like creating custom
fields. These are problems many users of Netbox Docker potentially face
and are therefore worth sharing.
This commit is contained in:
Christian Mäder 2018-02-16 10:25:26 +01:00
parent 061cbb8e8d
commit 43cb9f7e50
No known key found for this signature in database
GPG key ID: 92FFD0A711F196BB
11 changed files with 249 additions and 10 deletions

View file

@ -16,7 +16,11 @@ RUN apk add --no-cache \
postgresql-dev \
wget
RUN pip install gunicorn
RUN pip install \
# gunicorn is used for launching netbox
gunicorn \
# ruamel is used in startup_scripts
ruamel.yaml
WORKDIR /opt
@ -31,11 +35,13 @@ RUN pip install -r requirements.txt
COPY docker/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
COPY docker/gunicorn_config.py /opt/netbox/
COPY docker/nginx.conf /etc/netbox-nginx/nginx.conf
COPY docker/docker-entrypoint.sh docker-entrypoint.sh
COPY startup_scripts/ ./
COPY initializers/ ./
WORKDIR /opt/netbox/netbox
COPY docker/docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT [ "/docker-entrypoint.sh" ]
ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh" ]
VOLUME ["/etc/netbox-nginx/"]