Skip to content

Commit

Permalink
Add make attach to tests using a docker volume.
Browse files Browse the repository at this point in the history
This runs an interactive docker container (bash) with the volume mounted for
exploration / debug / inspect.
  • Loading branch information
dimitri committed Sep 11, 2024
1 parent 3e48209 commit 80bc34b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/follow-9.6/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ CLEANUP = make -f /var/lib/postgres/cleanup.mk
fix-volumes:
docker run --rm -it $(OPTS) $(CNAME) $(CLEANUP)

attach:
docker run --rm -it $(OPTS) $(CNAME) bash

.PHONY: run down build test fix-volumes
3 changes: 3 additions & 0 deletions tests/follow-data-only/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ CLEANUP = make -f /var/lib/postgres/cleanup.mk
fix-volumes:
docker run --rm -it $(OPTS) $(CNAME) $(CLEANUP)

attach:
docker run --rm -it $(OPTS) $(CNAME) bash

.PHONY: run down build test fix-volumes
3 changes: 3 additions & 0 deletions tests/follow-wal2json/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ CLEANUP = make -f /var/lib/postgres/cleanup.mk
fix-volumes:
docker run --rm -it $(OPTS) $(CNAME) $(CLEANUP)

attach:
docker run --rm -it $(OPTS) $(CNAME) bash

.PHONY: run down build test fix-volumes

0 comments on commit 80bc34b

Please sign in to comment.