Go to file
Andreas Zweili be38613324 pin the Python version in the docker images 2022-02-07 22:35:14 +01:00
.github/workflows add a missing env variable 2021-12-28 16:33:44 +01:00
.vscode correct vscode settings 2021-12-28 16:49:41 +01:00
backups make all tables responsive 2020-08-03 21:10:05 +02:00
computers add a custom user model 2021-12-30 18:31:47 +01:00
core multiple changes related to crispy-forms 2022-02-02 22:27:48 +01:00
customers move the modal to core 2022-01-10 17:53:10 +01:00
devices working category form 2022-02-07 14:49:40 +01:00
docs update the todos 2020-07-05 14:07:46 +02:00
licenses make all tables responsive 2020-08-03 21:10:05 +02:00
nets make sure that the description columns get wrapped properly 2020-08-03 21:35:20 +02:00
network_inventory remove the docker development environment 2022-02-07 22:27:59 +01:00
nginx add a nginx container as a reverse proxy 2020-02-15 17:58:16 +01:00
requirements add the postgres connector to the local requirements 2022-02-01 21:12:49 +01:00
softwares extend the models with 'ordering' 2020-07-07 22:12:57 +02:00
users add a view for groups 2021-12-30 20:51:39 +01:00
.coveragerc ignore the admin views in te coverage report 2020-03-01 12:42:59 +01:00
.dir-locals.el add the pytest options to the dir-locals 2020-05-01 12:49:05 +02:00
.env-example disable debugging mode in the example .env file 2020-02-15 15:25:36 +01:00
.envrc add a direnv file 2022-01-31 20:50:16 +01:00
.flake8 reformat the flake8 config 2020-03-01 12:42:43 +01:00
.gitignore ignore the .direnv directory 2022-01-31 20:50:34 +01:00
.gitlab-ci.yml try a hack 2020-07-17 17:12:29 +02:00
Dockerfile pin the Python version in the docker images 2022-02-07 22:35:14 +01:00
LICENSE Initial commit 2017-12-21 23:11:33 +01:00
Makefile remove the docker development environment 2022-02-07 22:27:59 +01:00
README.md update status badge 2022-02-07 21:45:48 +01:00
conftest.py remove unnecessary flag 2021-12-23 18:36:21 +01:00
docker-compose-development.yml remove the docker development environment 2022-02-07 22:27:59 +01:00
docker-compose.yml pin the Python version in the docker images 2022-02-07 22:35:14 +01:00
flake.lock update the flake for mach-nix 3.4 2022-02-04 09:58:42 +01:00
flake.nix update the flake for mach-nix 3.4 2022-02-04 09:58:42 +01:00
manage.py PEP8 2020-08-03 13:41:49 +02:00
network_inventory.yaml remove some unused fixtures 2021-12-30 18:55:06 +01:00
pytest.ini set junit_family to the new xunit2 2020-04-21 18:51:50 +02:00
run.sh expand fixtures 2021-12-30 16:10:04 +01:00

README.md

network_inventory

.github/workflows/publish.yml

I started this project in order to have solution for keeping an inventory over my various servers and other network equipment.

Production Setup

  1. Clone the repository
  2. Copy the .env-example file to .env and change the POSTGRES_PASSWORD and DJANGO_SECRET_KEY variables to something secure.
  3. Run docker-compose up and connect to http://localhost

Local Development Setup

The local setup is mainly intended to run the tests quickly. I recommend that you use the Docker setup if you want to interact with the website.

  1. Run make local to create the virtual environment for development. You're now all set to start developing.

Docker Development Setup

This is very similar to the production setup with the difference that the image for the web application gets built locally instead of getting pulled from Dockerhub.

  1. Run make to start the server. You can access it at http://localhost . You're now all set to start working.
  2. If you want to have some example data to work with run the command make init after you successfully run make.

Environment Variables

To customise the application in the Docker container you can use environment variables in the docker-compose.yml file. Currently the following variables are supported.

  • DJANGO_SECRET_KEY the secret key is mandatory, otherwise the application doesn't run. Make sure that it is some long random string.
  • DJANGO_DEBUG settings this variable to any value enables the Django debug mode. Make sure that you don't set it on a production server.
  • DJANGO_SETTINGS_MODULE the path to the settings file to use in the container. This requires a dotet syntax. The default is network_inventory.settings.docker.

Documentation

Currently there isn't a lot of documentation present. I try to document my thoughts and other related information in the Notes file.