Inventory toolkit in order not to lose technology stuff anymore
Notice: This is a kind of software specially developed for the technology working group on Katharineum zu Lübeck. It's OK, of course, to use it for other purposes.
- Create virtual Python 3 environment in project directory
$ python3 -m venv env - Activate virtual env
$ source env/bin/activate - Install needed pip libraries by
(env) $ pip install -r requirements.txt - Do migrations
(env) $ python manage.py makemigrations && python manage.py migrate - Install yarn packages (ensure
yarnpkgis installed)(env) $ python manage.py yarn install - Create first user
(env) $ python manage.py createsuperuser - Run development server
(env) $ python manage.py runserver
- Install Docker
- Install docker-compose
- Go to project directory
- Copy
example.envto.env - Customize settings via editing
.env - Run docker container
$ docker-compose up -f docker-compose.yml -f docker-compose.prod.yml(foreground)$ docker-compose up -f docker-compose.yml -f docker-compose.prod.yml -d(background)
Replace step 6 with following:
5. Run docker container
- $ docker-compose up (foreground)
- $ docker-compose up -d (background)
The difference is that the env vars for testing are predefined in docker-compose.override.yml and the tinventory image is going to be build live.
More information about Docker could be found on https://docker.com