2018-08-02 11:41:04 +02:00
|
|
|
COMPOSE:=docker-compose -p feedati
|
|
|
|
|
2018-07-31 17:13:27 +02:00
|
|
|
update:
|
|
|
|
git submodule update
|
|
|
|
|
|
|
|
fix-permissions:
|
|
|
|
chmod -R 777 tt-rss/feed-icons/ tt-rss/cache/ tt-rss/lock/
|
|
|
|
|
2018-08-01 11:59:57 +02:00
|
|
|
build: fix-permissions
|
2018-08-02 11:41:04 +02:00
|
|
|
$(COMPOSE) build
|
|
|
|
$(COMPOSE) up -d
|
2018-08-01 15:53:13 +02:00
|
|
|
$(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
|
2018-08-02 11:41:04 +02:00
|
|
|
$(COMPOSE) stop
|
2018-07-31 17:13:27 +02:00
|
|
|
|
2018-08-02 16:59:16 +02:00
|
|
|
rebuild-tt-rss:
|
|
|
|
docker-compose build tt-rss
|
|
|
|
|
|
|
|
rebuild-rss-bridge:
|
|
|
|
docker-compose build rss-bridge
|
|
|
|
|
|
|
|
rebuild: rebuild-tt-rss rebuild-rss-bridge
|
|
|
|
|
2018-07-31 23:44:41 +02:00
|
|
|
run: fix-permissions
|
2018-08-02 11:41:04 +02:00
|
|
|
$(COMPOSE) up
|
2018-08-01 18:27:30 +02:00
|
|
|
|
|
|
|
clean:
|
2018-08-02 11:41:04 +02:00
|
|
|
docker container rm $$(docker container ls -a --format '{{.ID}}\t{{.Names}}'|awk '$$2 ~ /feedati/ { print $$1 }') || true
|
2018-08-01 18:27:30 +02:00
|
|
|
|
|
|
|
clean-all: clean
|
2018-08-02 11:41:04 +02:00
|
|
|
docker rmi $$( docker images | awk '$$1 ~ /^feedati\// { print $$3 }') || true
|
2018-08-01 18:27:30 +02:00
|
|
|
docker volume rm feedati_postgres_data || true
|
2018-08-01 18:39:05 +02:00
|
|
|
|
|
|
|
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
|