forked from ingenierias-lentas/recopiladora_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (30 loc) · 966 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
39
40
41
42
43
# # these will speed up builds, for docker-compose >= 1.25
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
build:
docker compose build
up:
docker compose up -d app
dev:
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d app
test:
docker compose run --rm --no-deps --entrypoint='npm test' app
down:
docker compose down
down-remove-volumes:
docker compose down -v
logs:
docker compose logs app | tail -100
up-ci:
docker compose -f docker-compose.ci.yml up -d app
ts-build:
docker compose run --rm --no-deps --entrypoint='npm run build' app
test-coverage:
docker compose run --rm --no-deps --entrypoint='npm run test:coverage' app
test-ci:
docker compose -f docker-compose.ci.yml run --rm --no-deps --entrypoint='npm test' app
prisma-migrate:
docker compose run --rm --no-deps --entrypoint='npm run prisma:migrate' app
# Usage: make run cmd="npm i"
run:
docker compose run --rm --no-deps --entrypoint='$(cmd)' app