Merge pull request #983 from tobiasge/arm-test
Try to get test on ARM64 to pass
This commit is contained in:
commit
5273e17d89
5
.github/workflows/push.yml
vendored
5
.github/workflows/push.yml
vendored
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user