forked from AzuraCast/AzuraCast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (37 loc) · 1.29 KB
/
Makefile
File metadata and controls
53 lines (37 loc) · 1.29 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
SHELL=/bin/bash
.PHONY: *
list:
@LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
install: # Developer mode installation
bash ./docker.sh install-dev
up:
docker compose up -d
down:
docker compose down
restart: down up
build: # Rebuild all containers and restart
docker compose build
$(MAKE) restart
post-update:
$(MAKE) down
docker compose run --rm web azuracast_dev_install --update
$(MAKE) up
update: # Update everything (i.e. after a branch update)
docker compose build
$(MAKE) post-update
build-depot: # Rebuild all containers with Depot and restart
depot bake -f docker-compose.yml -f docker-compose.override.yml --load
$(MAKE) restart
update-depot: # Update everything using Depot
depot bake -f docker-compose.yml -f docker-compose.override.yml --load
$(MAKE) post-update
test:
docker compose exec --user=azuracast web composer run cleanup-and-test
bash:
docker compose exec --user=azuracast web bash
bash-root:
docker compose exec web bash
generate-locales:
docker compose exec --user=azuracast web azuracast_cli locale:generate
import-locales:
docker compose exec --user=azuracast web azuracast_cli locale:import