Skip to content

Commit 3286faa

Browse files
authored
Merge pull request #989 from netbox-community/develop
Version 2.5.3
2 parents 7bf9e1a + 788cd03 commit 3286faa

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

.github/workflows/push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
python-version: '3.9'
2525
- name: Lint Code Base
26-
uses: github/super-linter@v4
26+
uses: github/super-linter@v5
2727
env:
2828
DEFAULT_BRANCH: develop
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -75,6 +75,11 @@ jobs:
7575
env:
7676
BUILDX_PLATFORM: ${{ matrix.platform }}
7777
BUILDX_BUILDER_NAME: ${{ steps.buildx-setup.outputs.name }}
78+
- id: arm-time-limit
79+
name: Set Netbox container start_period higher on ARM64
80+
if: matrix.platform == 'linux/arm64'
81+
run: |
82+
echo "NETBOX_START_PERIOD=240s" >>"${GITHUB_ENV}"
7883
- id: docker-test
7984
name: Test the image
8085
run: IMAGE="${FINAL_DOCKER_TAG}" ./test.sh

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ RUN export DEBIAN_FRONTEND=noninteractive \
1414
libsasl2-dev \
1515
libssl-dev \
1616
libxml2-dev \
17-
libxml2-dev \
1817
libxmlsec1 \
1918
libxmlsec1-dev \
2019
libxmlsec1-openssl \
@@ -31,7 +30,11 @@ RUN export DEBIAN_FRONTEND=noninteractive \
3130

3231
ARG NETBOX_PATH
3332
COPY ${NETBOX_PATH}/requirements.txt requirements-container.txt /
34-
RUN sed -i -e '/psycopg2-binary/d' requirements.txt && \
33+
RUN sed -i -e '/psycopg2-binary/d' /requirements.txt && \
34+
# We need 'social-auth-core[all]' in the Docker image. But if we put it in our own requirements-container.txt
35+
# we have potential version conflicts and the build will fail.
36+
# That's why we just replace it in the original requirements.txt.
37+
sed -i -e 's/social-auth-core\[openidconnect\]/social-auth-core\[all\]/g' /requirements.txt && \
3538
/opt/netbox/venv/bin/pip install \
3639
-r /requirements.txt \
3740
-r /requirements-container.txt
@@ -74,6 +77,8 @@ COPY --from=builder /opt/netbox/venv /opt/netbox/venv
7477

7578
ARG NETBOX_PATH
7679
COPY ${NETBOX_PATH} /opt/netbox
80+
# Copy the modified 'requirements*.txt' files, to have the files actually used during installation
81+
COPY --from=builder /requirements.txt /requirements-container.txt /opt/netbox/
7782

7883
COPY docker/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
7984
COPY docker/ldap_config.docker.py /opt/netbox/netbox/netbox/ldap_config.py

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.2
1+
2.5.3

docker-compose.test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
volumes:
1515
- ./test-configuration/logging.py:/etc/netbox/config/logging.py:z,ro
1616
healthcheck:
17-
start_period: 120s
17+
start_period: ${NETBOX_START_PERIOD-120s}
1818
timeout: 3s
1919
interval: 15s
2020
test: "curl -f http://localhost:8080/api/ || exit 1"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.4'
22
services:
33
netbox: &netbox
4-
image: docker.io/netboxcommunity/netbox:${VERSION-v3.4-2.5.2}
4+
image: docker.io/netboxcommunity/netbox:${VERSION-v3.4-2.5.3}
55
depends_on:
66
- postgres
77
- redis

requirements-container.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
django-auth-ldap==4.2.0
22
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.13.2
33
napalm==4.0.0
4-
psycopg2==2.9.5
4+
psycopg2==2.9.6
55
python3-saml==1.15.0
6-
social-auth-core[all]==4.4.0

0 commit comments

Comments
 (0)