forked from AzuraCast/AzuraCast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 1.35 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
.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-cloud-ide:
cp docker-compose.cloudide.yml docker-compose.yml
cp dev.env .env
cp azuracast.dev.env azuracast.env
docker-compose build
docker-compose run --rm --user="azuracast" 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
update: # Update everything (i.e. after a branch update)
docker-compose build
$(MAKE) down
docker-compose run --rm --user=azuracast web composer install
docker-compose run --rm --user=azuracast web azuracast_cli azuracast:setup:initialize
$(MAKE) frontend-build
$(MAKE) up
test:
docker-compose exec --user=azuracast web composer run cleanup-and-test
bash:
docker-compose exec --user=azuracast web bash
frontend-bash:
docker-compose -f frontend/docker-compose.yml build
docker-compose --env-file=.env -f frontend/docker-compose.yml run -e NODE_ENV=development --rm frontend
frontend-build:
docker-compose -f frontend/docker-compose.yml build
docker-compose --env-file=.env -f frontend/docker-compose.yml run -e NODE_ENV=development --rm frontend npm run dev-build