Try to get test on ARM64 to pass

This commit is contained in:
Tobias Genannt 2023-04-06 12:05:02 +02:00
parent 5d6e733bce
commit e44f0398fb
2 changed files with 6 additions and 1 deletions

View File

@ -75,6 +75,11 @@ jobs:
env: env:
BUILDX_PLATFORM: ${{ matrix.platform }} BUILDX_PLATFORM: ${{ matrix.platform }}
BUILDX_BUILDER_NAME: ${{ steps.buildx-setup.outputs.name }} BUILDX_BUILDER_NAME: ${{ steps.buildx-setup.outputs.name }}
- id: arm-time-limit
name: Set Netbox container start_period higher on ARM64
if: matrix.platform == 'linux/arm64'
run: |
echo "NETBOX_START_PERIOD=240s" >>"${GITHUB_ENV}"
- id: docker-test - id: docker-test
name: Test the image name: Test the image
run: IMAGE="${FINAL_DOCKER_TAG}" ./test.sh run: IMAGE="${FINAL_DOCKER_TAG}" ./test.sh

View File

@ -14,7 +14,7 @@ services:
volumes: volumes:
- ./test-configuration/logging.py:/etc/netbox/config/logging.py:z,ro - ./test-configuration/logging.py:/etc/netbox/config/logging.py:z,ro
healthcheck: healthcheck:
start_period: 120s start_period: ${NETBOX_START_PERIOD-120s}
timeout: 3s timeout: 3s
interval: 15s interval: 15s
test: "curl -f http://localhost:8080/api/ || exit 1" test: "curl -f http://localhost:8080/api/ || exit 1"