forked from koel/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: all help start
all: help
build-docker-image: ## Builds the production x86_64 Docker image
docker build . --file Dockerfile --tag hyzual/koel-dev:latest
build-all-arch-docker-images: ## Builds the production Docker image for all supported processor architectures
docker buildx build --platform linux/amd64,linux/arm/v7,linux/arm64 . --file Dockerfile --tag hyzual/koel-dev:latest
koel-init: ## Create the APP_KEY for the DEV docker-compose stack
docker exec -it koeldev php artisan koel:init --no-assets
sync-music: ## Sync music from the /music volume with the database
docker exec -it koeldev php artisan koel:sync -v
clear-cache: ## Clear caches that sometimes cause error 500
docker exec -it koeldev php artisan cache:clear
see-logs: ## Tail -f laravel logs
docker exec -it koeldev tail -f storage/logs/laravel.log
start: ## Build and start the DEV docker-compose stack
# Create the .env files first, otherwise docker-compose is not happy
touch ./.env.koel ./.env.dev || true
docker-compose -f docker-compose.dev.yml up -d --build
@echo "Go to http://localhost"
dgoss-dev: ## Run goss tests on the dev docker-compose stack
dgoss run docker-koel_koel:latest
dgoss-edit: ## Edit the goss tests on the dev docker-compose stack
dgoss edit docker-koel_koel:latest
help: ## Display this help screen
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'