Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing Makefile features #9

Merged
merged 4 commits into from
May 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ help:
start: ## Spin up the containers and run the app UI in watch mode
docker compose up -d

stop: ## Shut down the containers
docker compose down \
stop: ## Stop the containers
WendellAdriel marked this conversation as resolved.
Show resolved Hide resolved
docker compose stop \
&& rm -f docker/redis/data/dump.rdb

status: ## Status the containers
docker compose ps

down: ## Shut down the containers with args for removed volumes
docker compose down $(ARGS) \
&& rm -f docker/redis/data/dump.rdb

build: ## Build all docker images OR a specific image by providing the service name via: make build SERVICE_NAME=<service>
cp .env.example .env \
[ -f .env ] || cp .env.example .env \
&& docker compose build $(SERVICE_NAME)

db-start: ## Spin up the DB container for migrations and seeding
Expand Down