Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social media event detector #404

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions af/detector/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
detector (0.3) unstable; urgency=medium

* Implement event detector for social media using Clickhouse

-- Federico Ceratto <federico@debian.org> Fri, 11 Nov 2022 18:08:26 +0000

detector (0.2) unstable; urgency=medium

* run webapp as a dedicated service
Expand Down
22 changes: 6 additions & 16 deletions af/detector/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,23 @@ Source: detector
Section: python
Priority: optional
Maintainer: Federico Ceratto <federico@debian.org>
Build-Depends: debhelper-compat (= 12),
Build-Depends: debhelper-compat (= 13),
python3,
dh-systemd (>= 1.5),
dh-python,
python3-boto3,
python3-lz4,
python3-paramiko,
python3-psycopg2,
python3-clickhouse-driver,
python3-setuptools,
python3-statsd,
python3-systemd,
python3-ujson
Standards-Version: 4.1.3
python3-systemd
Standards-Version: 4.6.0

Package: detector
Architecture: all
Depends: ${misc:Depends},
${python3:Depends},
python3-boto3,
python3-lz4,
python3-paramiko,
python3-psycopg2,
python3-clickhouse-driver,
python3-setuptools,
python3-statsd,
python3-systemd,
python3-ujson,
nginx
python3-systemd
Suggests:
bpython3,
python3-pytest,
Expand Down
36 changes: 0 additions & 36 deletions af/detector/debian/detector-webapp.service

This file was deleted.

12 changes: 12 additions & 0 deletions af/detector/debian/detector.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Run event detector
Requires=detector.service

[Timer]
Unit=detector.service
# Every 10 mins
OnCalendar=*:00/10:00
Persistent=true

[Install]
WantedBy=timers.target
26 changes: 26 additions & 0 deletions af/detector/debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh
set -e

case "$1" in
configure)
#addgroup --system --quiet fastpath
#adduser --system --quiet --ingroup fastpath --no-create-home --home /var/lib/fastpath fastpath
mkdir -p /var/lib/detector
chown fastpath /var/lib/detector -R
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
Loading