-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (26 loc) · 876 Bytes
/
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
# Docker commands
DOCKER_COMMAND=docker-compose
docker/up:
$(DOCKER_COMMAND) up -d
docker/down:
$(DOCKER_COMMAND) down
docker/build:
$(DOCKER_COMMAND) up -d --build
docker/create:
$(DOCKER_COMMAND) run web rake db:create
docker/bundle:
$(DOCKER_COMMAND) run web bundle install
docker/yarn:
$(DOCKER_COMMAND) run web yarn install
docker/migrate: docker/bundle docker/yarn docker/create
$(DOCKER_COMMAND) run web rake db:migrate
docker/seed: docker/migrate
$(DOCKER_COMMAND) run web rake db:seed:all
docker/tests/db: docker/migrate
$(DOCKER_COMMAND) run web rake db:test:prepare
docker/tests/backend: docker/tests/db
$(DOCKER_COMMAND) run -e RAILS_ENV=test web bundle exec rspec
docker/tests/frontend: docker/yarn
$(DOCKER_COMMAND) run -e NODE_ENV=test web yarn test
docker/tests/e2e: docker/migrate docker/seed
$(DOCKER_COMMAND) run web yarn cypress:ci