From c3b7649c8f7349d90791dfc64a6decc6ceacc8ba Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Thu, 27 Sep 2018 07:23:02 +0530 Subject: [PATCH] Changing Papertrail syslog config. --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c961dd..033eb2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ARG papertrail_token RUN cd /root;\ apt-get -y update;\ apt-get -y upgrade;\ - apt-get -y install python3 python3-pip git wget cron;\ + apt-get -y install python3 python3-pip git wget cron rsyslog;\ git clone https://github.com/ayush-sharma/tweet-toot.git;\ cd tweet-toot;\ pip3 install -r requirements.txt;\ @@ -17,7 +17,8 @@ RUN cd /root;\ apt-get -y autoremove;\ apt-get -y autoclean;\ # Configure Tweet-Toot - sed -i 's/"toots.app_secure_token": ""/"toots.app_secure_token": "'$mastodon_token'"/g' config.json + sed -i 's/"toots.app_secure_token": ""/"toots.app_secure_token": "'$mastodon_token'"/g' config.json;\ + sed -i '/imklog/d' /etc/rsyslog.conf # Install Papertrail agent RUN wget -qO - --header="X-Papertrail-Token: "$papertrail_token https://papertrailapp.com/destinations/10693082/setup.sh | bash;\ @@ -36,4 +37,4 @@ RUN crontab -l > /tmp/crontab;\ RUN touch /tmp/tweet-toot.log -CMD cron && tail -f /tmp/tweet-toot.log \ No newline at end of file +CMD cron && tail -f /tmp/tweet-toot.log