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-07-31 17:13:27 +02:00
|
|
|
docker-compose build
|
2018-08-01 15:53:13 +02:00
|
|
|
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
|
2018-07-31 17:13:27 +02:00
|
|
|
|
2018-07-31 23:44:41 +02:00
|
|
|
run: fix-permissions
|
2018-07-31 17:13:27 +02:00
|
|
|
docker-compose up
|