Improving build target
This commit is contained in:
parent
d4cefd9911
commit
d10864f24d
1 changed files with 8 additions and 0 deletions
8
Makefile
8
Makefile
|
@ -6,6 +6,14 @@ fix-permissions:
|
||||||
|
|
||||||
build: fix-permissions
|
build: fix-permissions
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
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
|
||||||
|
|
||||||
run:
|
run:
|
||||||
docker-compose up
|
docker-compose up
|
||||||
|
|
Loading…
Reference in a new issue