- Python 3
- Pip 3
- Boto 3
Download the repository (we will put it on ~/log-processor folder)
git clone https://gitlab.com/coronavirus-outbreak-control/log-processor ~/log-processorEdit following constants in /config.py file:
SQS_QUE_URL_COVAPP = 'XXXXXXXXX'
BUCKET_S3_NAME = 'XXXXXXXXX'
BUCKET_S3_COPY_NAME = 'XXXXXXXXX'
BASE_DIR = 'XXXXXXXXX'Replace the XXXXXXXXX with your values.
Get the current user, type # whoami
Open consumer-covapp.service and edit the user value with the name of the current user.
In order to set consumer-covapp.service as systemctl service, create a symlink of our service
sudo ln -s ~/log-processor/consumer-covapp.service /etc/systemd/system/consumer-covapp.serviceGo in the system directory
cd /etc/systemd/system/Start the service:
systemctl start consumer-covapp.serviceAnd automatically get it to start at boot:
systmctl enable consumer-covapp.serviceTo test the system, simply type:
systemctl status consumer-covapp.serviceThe output should be something like:
● consumer-covapp.service - Consumer Covid App.
Loaded: loaded
Active: active (running)That's it.