Reverted previous work

This commit is contained in:
TheNetworkGuy 2025-04-23 11:11:05 +02:00
parent 4fd582970d
commit dad7d2911f
2 changed files with 0 additions and 66 deletions

View File

@ -1,44 +0,0 @@
---
name: Unit testing and functional code control
on:
push:
branches:
- 'main'
- 'develop'
- 'unittesting'
jobs:
integration:
runs-on: ubuntu-latest
services:
docker:
image: docker:dind
options: --privileged --shm-size=2g
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
steps:
- uses: actions/checkout@v4
- name: Install Docker and Docker-compose
run: |
apt-get update
apt-get install -y docker.io
apt install docker-compose-v2 -y
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Show Python version
run: python --version
- name: Test Docker
run: |
docker version
- name: configure and start Netbox
run: |
git clone -b release https://github.com/netbox-community/netbox-docker.git
mv infra/netbox-compose.yml netbox-docker/docker-compose.override.yml
docker compose -f netbox-docker/docker-compose.yml pull
docker compose -f netbox-docker/docker-compose.yml up -d
- name: Wait 2 minutes for compose stack to build
run: |
sleep 120s
docker compose -f netbox-docker/docker-compose.yml logs netbox

View File

@ -1,22 +0,0 @@
services:
netbox:
ports:
- "8000:8080"
# If you want the Nginx unit status page visible from the
# outside of the container add the following port mapping:
# - "8001:8081"
healthcheck:
# Time for which the health check can fail after the container is started.
# This depends mostly on the performance of your database. On the first start,
# when all tables need to be created the start_period should be higher than on
# subsequent starts. For the first start after major version upgrades of NetBox
# the start_period might also need to be set higher.
# Default value in our docker-compose.yml is 60s
start_period: 150s
# environment:
# SKIP_SUPERUSER: "false"
# SUPERUSER_API_TOKEN: ""
# SUPERUSER_EMAIL: ""
# SUPERUSER_NAME: ""
# SUPERUSER_PASSWORD: ""