forked from blallo/Feedati
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
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
|