Skip to content

agdsn/hades

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hades

Hades is the AG DSN authentication and authorization system

Documentation for Hades can be found on here

Building

Enter the hades docker container:

docker compose exec --user=builder --workdir=/build/hades hades bash
Building arpreq
(
   cd vendor \
   && (cd arpreq && dpkg-buildpackage --no-sign -b) \
   && sudo dpkg -i python3-arpreq_*.deb;
)
Building hades
dpkg-buildpackage --no-sign -b \
&& sudo dpkg -i ../hades_*.deb \
&& sudo systemctl start hades

Troubleshooting

Issues with the db schema / access Try recreating the costgresql-cluster in the container:
sudo systemctl stop hades-database
sudo /usr/lib/hades/control-database.sh clear
sudo systemctl start hades-database
setup.py cannot be deleted when rebuilding This can happen when the template instantiation command fails, which causes setup.py to not be emitted. Thus, setup.py clean cannot possibly work. The quickfix is to
touch /build/hades/setup.py

and then rebuild.

Misc

Drawing a systemd unit dependency graph

Inside the docker container:

sydstemd-analyze dot --to-pattern='hades*' > hades.dot

Then on your system (assuming it has dot installed):

dot -Tsvg <(<hades.dot | grep -v 'target') > hades.svg
xdg-open hades.svg