Archived
2
0
Fork 0
forked from blallo/Feedati

who needs makefiles?

This commit is contained in:
boyska 2018-08-09 13:37:09 +02:00
parent 0ff7263d8e
commit 1318d88a34

View file

@ -1,50 +0,0 @@
COMPOSE:=docker-compose -p feedati
update:
git submodule update
fix-permissions:
chmod -R 777 tt-rss/feed-icons/ tt-rss/cache/ tt-rss/lock/
build: fix-permissions
$(COMPOSE) build
$(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
$(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
$(COMPOSE) up
clean:
docker container rm $$(docker container ls -a --format '{{.ID}}\t{{.Names}}'|awk '$$2 ~ /feedati/ { print $$1 }') || true
clean-all: clean
docker rmi $$( docker images | awk '$$1 ~ /^feedati\// { 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