✨ 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:
12
Dockerfile
12
Dockerfile
@@ -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/"]
|
||||
|
||||
|
Reference in New Issue
Block a user