forked from AzuraCast/AzuraCast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (45 loc) · 1.56 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
install-cloud-ide:
cp docker-compose.sample.yml docker-compose.yml
cp docker-compose.cloudide.yml docker-compose.override.yml
cp dev.env .env
cp azuracast.dev.env azuracast.env
docker-compose pull
docker-compose build
docker-compose run --rm web azuracast_install "$@"
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