mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 03:16:25 -06:00
Merge 270b576c80
into 76c6fbbfba
This commit is contained in:
commit
5872449320
22
Dockerfile
22
Dockerfile
@ -1,20 +1,18 @@
|
||||
FROM python:2.7-wheezy
|
||||
FROM python:2.7.12-wheezy
|
||||
|
||||
WORKDIR /opt/netbox
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
VOLUME ["/etc/netbox-nginx/"]
|
||||
|
||||
ARG BRANCH=master
|
||||
ARG URL=https://github.com/digitalocean/netbox.git
|
||||
RUN git clone --depth 1 $URL -b $BRANCH . && \
|
||||
apt-get update -qq && apt-get install -y libldap2-dev libsasl2-dev libssl-dev && \
|
||||
COPY requirements.txt /opt/netbox/requirements.txt
|
||||
RUN apt-get update -qq && apt-get install -y libldap2-dev libsasl2-dev libssl-dev && \
|
||||
pip install gunicorn==17.5 && \
|
||||
pip install django-auth-ldap && \
|
||||
pip install -r requirements.txt
|
||||
|
||||
ADD docker/docker-entrypoint.sh /docker-entrypoint.sh
|
||||
ADD netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
|
||||
COPY docker/docker-entrypoint.sh /docker-entrypoint.sh
|
||||
COPY docker/nginx.conf /etc/netbox-nginx/
|
||||
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
|
||||
ADD docker/gunicorn_config.py /opt/netbox/
|
||||
ADD docker/nginx.conf /etc/netbox-nginx/
|
||||
VOLUME ["/etc/netbox-nginx/"]
|
||||
COPY . /opt/netbox
|
||||
COPY netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
|
||||
COPY docker/gunicorn_config.py /opt/netbox/
|
||||
|
18
Dockerfile.jessie
Normal file
18
Dockerfile.jessie
Normal file
@ -0,0 +1,18 @@
|
||||
FROM python:2.7.12
|
||||
|
||||
WORKDIR /opt/netbox
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
VOLUME ["/etc/netbox-nginx/"]
|
||||
|
||||
COPY requirements.txt /opt/netbox/requirements.txt
|
||||
RUN apt-get update -qq && apt-get install -y libldap2-dev libsasl2-dev libssl-dev && \
|
||||
pip install gunicorn==17.5 && \
|
||||
pip install django-auth-ldap && \
|
||||
pip install -r requirements.txt
|
||||
|
||||
COPY docker/docker-entrypoint.sh /docker-entrypoint.sh
|
||||
COPY docker/nginx.conf /etc/netbox-nginx/
|
||||
|
||||
COPY . /opt/netbox
|
||||
COPY netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
|
||||
COPY docker/gunicorn_config.py /opt/netbox/
|
8
docker-compose.jessie.yml
Normal file
8
docker-compose.jessie.yml
Normal file
@ -0,0 +1,8 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
netbox:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.jessie
|
||||
image: digitalocean/netbox:jessie
|
Loading…
Reference in New Issue
Block a user