HD3Tool

Clone Repository

git clone https://user:user@sil2.osadl.org/git/Open_Safety_tools/HD3Tool.git

Edit src/docker-compose.yml

Behind a nginx proxy enable

    expose:
      - 8002            # HD3Tool

Standalone enable

    ports:
      - 8002:8002            # HD3Tool

Install in docker

# Setup DB

docker-compose run hd3_tool python3 manage.py makemigrations
docker-compose run hd3_tool python3 manage.py migrate
docker-compose run hd3_tool python3 manage.py migrate --run-syncdb
docker-compose run hd3_tool python3 django-admin sync_roles
docker-compose run hd3_tool python3 manage.py loaddata HD3tool/fixtures/init_data.json

python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py migrate --run-syncdb
python3 django-admin sync_roles
python3 manage.py loaddata HD3tool/fixtures/init_data.json
python3 manage.py createsuperuser

python3 ./manage.py dumpdata --indent 2 --exclude auth.permission --exclude contenttypes --exclude admin.logentry --exclude auth.group --exclude auth.user > db.json

Admin site is available here:

http://ip_server:8001/admin/

HD3 Front-end here

http://ip_server:8001/HD3app/app