Skip to content

Commit d6a583a

Browse files
[BUG Prune docker images in cron-tmux (#27)
1 parent 2539add commit d6a583a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,5 @@ docker-setup:
8282

8383
docker-push:
8484
sudo heroku auth:token | sudo docker login --username=_ registry.heroku.com --password-stdin
85-
mkdir -p clear-docker-cache
86-
touch "clear-docker-cache/$(shell date)"
8785
sudo heroku container:push web -a climate-news-db --recursive
8886
sudo heroku container:release web -a climate-news-db

cron-tmux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
. /home/ubuntu/.profile
33
. /home/ubuntu/.bashrc
44
cd /home/ubuntu/climate-news-db && /usr/bin/tmux new -d -s cron-scraper
5-
/usr/bin/tmux send-keys -t cron-scraper "/usr/bin/make scrape; sudo shutdown" C-m
5+
docker system prune --all --force
6+
/usr/bin/tmux send-keys -t cron-scraper "/usr/bin/make scrape >> ~/cron-log.txt && sudo shutdown" C-m

0 commit comments

Comments
 (0)