Skip to content

Commit

Permalink
Merge pull request #568 from netbox-community/develop
Browse files Browse the repository at this point in the history
Version 1.3.1
  • Loading branch information
tobiasge authored Sep 3, 2021
2 parents 6c5434e + 389e68f commit e021390
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
22 changes: 21 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ RUN apk add --no-cache \
build-base \
cargo \
ca-certificates \
cmake \
cyrus-sasl-dev \
git \
graphviz \
jpeg-dev \
libevent-dev \
libffi-dev \
openssl-dev \
libxslt-dev \
make \
musl-dev \
openldap-dev \
openssl-dev \
postgresql-dev \
py3-pip \
python3-dev \
Expand All @@ -24,6 +27,20 @@ RUN apk add --no-cache \
setuptools \
wheel

# Build libcrc32c for google-crc32c python module
RUN git clone https://github.com/google/crc32c \
&& cd crc32c \
&& git submodule update --init --recursive \
&& mkdir build \
&& cd build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCRC32C_BUILD_TESTS=no \
-DCRC32C_BUILD_BENCHMARKS=no \
-DBUILD_SHARED_LIBS=yes \
.. \
&& make all install

ARG NETBOX_PATH
COPY ${NETBOX_PATH}/requirements.txt requirements-container.txt /
RUN /opt/netbox/venv/bin/pip install \
Expand Down Expand Up @@ -55,6 +72,9 @@ RUN apk add --no-cache \

WORKDIR /opt

COPY --from=builder /usr/local/lib/libcrc32c.* /usr/local/lib/
COPY --from=builder /usr/local/include/crc32c /usr/local/include
COPY --from=builder /usr/local/lib/cmake/Crc32c /usr/local/lib/cmake/
COPY --from=builder /opt/netbox/venv /opt/netbox/venv

ARG NETBOX_PATH
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0
1.3.1
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ services:
- /opt/netbox/netbox/manage.py
command:
- rqworker
ports: []

# postgres
postgres:
Expand Down
1 change: 1 addition & 0 deletions requirements-container.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
napalm==3.3.1
ruamel.yaml==0.17.16
django-auth-ldap==3.0.0
google-crc32c==1.1.4
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.11.1

0 comments on commit e021390

Please sign in to comment.