who needs makefiles?
This commit is contained in:
parent
0ff7263d8e
commit
1318d88a34
1 changed files with 0 additions and 50 deletions
50
Makefile
50
Makefile
|
@ -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
|
Loading…
Reference in a new issue