Add ldap.
This commit is contained in:
parent
883458f958
commit
8bfc4b61a2
1 changed files with 10 additions and 1 deletions
11
Dockerfile
11
Dockerfile
|
@ -32,7 +32,8 @@ RUN wget -q -O - "${URL}" | tar xz \
|
|||
&& mv netbox* netbox
|
||||
|
||||
WORKDIR /opt/netbox
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install -r requirements.txt \
|
||||
&& pip install django_auth_ldap
|
||||
|
||||
COPY docker/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
|
||||
COPY configuration/gunicorn_config.py /etc/netbox/
|
||||
|
@ -42,6 +43,9 @@ COPY startup_scripts/ /opt/netbox/startup_scripts/
|
|||
COPY initializers/ /opt/netbox/initializers/
|
||||
COPY configuration/configuration.py /etc/netbox/configuration.py
|
||||
|
||||
COPY docker/ldap_config.docker.py /opt/netbox/netbox/netbox/ldap_config.py
|
||||
COPY configuration/ldap_config.py /etc/netbox/ldap_config.py
|
||||
|
||||
WORKDIR /opt/netbox/netbox
|
||||
|
||||
ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh" ]
|
||||
|
@ -51,3 +55,8 @@ VOLUME ["/etc/netbox-nginx/"]
|
|||
CMD ["gunicorn", "-c /etc/netbox/gunicorn_config.py", "netbox.wsgi"]
|
||||
|
||||
LABEL SRC_URL="$URL"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue