forked from AnikaLegal/clerk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 1.43 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
#
# This Makefile contains commands which are run by developers, outside of Docker.
# Most of these commands use the Makefile at ./app/Makefile
#
# If you find yourself running the same docker-compose command over and over,
# then consider adding it here.
#
# Build local Docker envrionment
build:
docker build . --tag clerk:local -f docker/Dockerfile
# Run Django website for local development
web:
docker-compose -f docker/docker-compose.local.yml up web
# Run Django with debugging enabled
debug:
docker-compose -f docker/docker-compose.local.yml run --rm --service-ports web
# Get a bash shell in the docker container
bash:
docker-compose -f docker/docker-compose.local.yml run --rm web bash
# Get a Django shell_plus shell in the docker container
shell:
docker-compose -f docker/docker-compose.local.yml run --rm web /app/scripts/tasks/shell.sh
# Get a Postgres shell in the docker container
psql:
docker-compose -f docker/docker-compose.local.yml run --rm web psql
# Lint Python code
lint:
docker-compose -f docker/docker-compose.local.yml run --rm test /app/scripts/tasks/lint.sh
# Auto-format frontend and backend code
format:
docker-compose -f docker/docker-compose.local.yml run --rm test /app/scripts/tasks/format.sh
# Run PyTest
test:
docker-compose -f docker/docker-compose.local.yml run --rm test /app/scripts/tasks/test.sh
# View worker logs
logs:
docker-compose -f docker/docker-compose.local.yml logs --tail 100 -f worker