Feedati/Makefile

48 lines
1.2 KiB
Makefile

update:
git submodule update
fix-permissions:
chmod -R 777 tt-rss/feed-icons/ tt-rss/cache/ tt-rss/lock/
build: fix-permissions
docker-compose build
docker-compose up -d
$(eval DB_ID := $(shell docker ps -qf name=feedati_db))
@echo "[build] DB_ID = $(DB_ID)"
await -t 5m postgres://ttrss:password-dev@localhost:5432/ttrss -- \
docker cp ./docker/ttrss.sql $$(docker ps -qf name=feedati_db):/tmp/ttrss.sql
docker exec -t $$(docker ps -qf name=feedati_db) su -c "psql -d ttrss < /tmp/ttrss.sql" postgres
docker exec -t $$(docker ps -qf name=feedati_db) rm -f /tmp/ttrss.sql
docker-compose stop
rebuild-tt-rss:
docker-compose build tt-rss
rebuild-rss-bridge:
docker-compose build rss-bridge
rebuild: rebuild-tt-rss rebuild-rss-bridge
run: fix-permissions
docker-compose up
clean:
docker container rm $$(docker container ls -a|grep feedati|awk '{print $$1}')
clean-all: clean
docker rmi $$(docker images|grep feedati|awk '{print $3}') || true
docker volume rm feedati_postgres_data || true
update-tt-rss:
cd tt-rss \
&& git reset \
&& git pull origin master \
&& git push lattuga master
update-rss-bridge:
cd rss-bridge \
&& git reset \
&& git pull origin master \
&& git push lattuga master
update-remotes: update-rss-bridge update-tt-rss