-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
69 lines (47 loc) · 1.36 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
64
65
66
67
68
69
DOCKER_COMPOSE_TESTING = docker-compose -p larabuild_testing -f docker-compose.testing.yml
TAG = datashaman/larabuild
dummy:
test:
phpunit
build: docker-build-tag
admin-token:
php artisan larabuild:access-token [email protected]
docker-prune: docker-prune-stopped docker-prune-untagged
docker-build-build: docker-build-local
docker build -f Dockerfile.build --tag $(TAG):build .
docker-build-local:
docker build --tag $(TAG) .
db-rebuild:
mysqladmin -u$(DB_USERNAME) -p$(DB_PASSWORD) -h$(DB_HOST) drop $(DB_DATABASE)
mysqladmin -u$(DB_USERNAME) -p$(DB_PASSWORD) -h$(DB_HOST) create $(DB_DATABASE)
php artisan migrate --seed
dc-down:
docker-compose down
dc-logs:
docker-compose logs -f
dc-nuke:
docker-compose down -v --remove-orphans
dc-ps:
docker-compose ps
dc-test-bash:
$(DOCKER_COMPOSE_TESTING) build
$(DOCKER_COMPOSE_TESTING) exec --rm app bash
dc-test-down:
$(DOCKER_COMPOSE_TESTING) down
dc-test-logs:
$(DOCKER_COMPOSE_TESTING) logs -f
dc-test-nuke:
$(DOCKER_COMPOSE_TESTING) down -v --remove-orphans
dc-test-ps:
$(DOCKER_COMPOSE_TESTING) ps
dc-test-run:
$(DOCKER_COMPOSE_TESTING) exec app php artisan migrate
$(DOCKER_COMPOSE_TESTING) exec app phpunit
dc-test-up:
$(DOCKER_COMPOSE_TESTING) up --build -d
dc-up:
docker-compose up -d
nuke: dc-nuke dc-test-nuke
yarn-production:
yarn run production
dos2unix public/js/app.js