Skip to content

Commit

Permalink
[F] Use makefile for aliasing docker commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Mason committed Jan 8, 2024
1 parent 7edb598 commit 8ac8a2b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 16 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
start:
docker-compose -f docker-compose-local-db.yml up --build

clean:
docker system prune -f && docker volume prune -f

clean-images:
docker images prune
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ docker-compose -f docker-compose-local-db.yml up
8. Go to <http://localhost:8080/admin> to administer the site
9. Default admin username and password, as included in the db.sql file, is `example / password`

These and other most used docker commands for bringing containers up/down are aliased in a Makefile:
* `make start` is equivalent to `docker-compose -f docker-compose-local-db.yml up --build`
* `make clean` is equivalent to `docker system prune -f && docker volume prune -f`
* `make clean-images` is equivalent to `docker images prune`

#### Useful docker commands for local development

1. Cleaning house: `docker volume prune` `docker system prune`
Expand Down
2 changes: 0 additions & 2 deletions clean

This file was deleted.

2 changes: 0 additions & 2 deletions clean-images

This file was deleted.

2 changes: 0 additions & 2 deletions dev

This file was deleted.

10 changes: 0 additions & 10 deletions package.json

This file was deleted.

0 comments on commit 8ac8a2b

Please sign in to comment.