Add Makefile command for rebuilding images (#817)
This commit is contained in:
parent
2815fc5ed8
commit
d2243ba09b
2 changed files with 8 additions and 0 deletions
6
Makefile
6
Makefile
|
|
@ -77,6 +77,9 @@ stop:
|
|||
restart:
|
||||
$(call run_docker_compose_command,restart)
|
||||
|
||||
build:
|
||||
$(call run_docker_compose_command,build)
|
||||
|
||||
cleanup: stop
|
||||
docker system prune --filter label="$(DOCKER_COMPOSE_DEV_LABEL)" --all --volumes
|
||||
|
||||
|
|
@ -112,6 +115,9 @@ shell:
|
|||
dbshell:
|
||||
$(call run_engine_docker_command,python manage.py dbshell)
|
||||
|
||||
exec-engine:
|
||||
docker exec -it oncall_engine bash
|
||||
|
||||
# The below commands are useful for running backend services outside of docker
|
||||
define backend_command
|
||||
export `grep -v '^#' $(DEV_ENV_FILE) | xargs -0` && \
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ make init # build the frontend plugin code then run make start
|
|||
make start # start all of the docker containers
|
||||
make stop # stop all of the docker containers
|
||||
make restart # restart all docker containers
|
||||
make build # rebuild images (e.g. when changing requirements.txt)
|
||||
|
||||
# this will remove all of the images, containers, volumes, and networks
|
||||
# associated with your local OnCall developer setup
|
||||
|
|
@ -101,6 +102,7 @@ make start-celery-beat # start celery beat
|
|||
make purge-queues # purge celery queues
|
||||
make shell # starts an OnCall engine Django shell
|
||||
make dbshell # opens a DB shell
|
||||
make exec-engine # exec into engine container's bash
|
||||
make test # run backend tests
|
||||
|
||||
# run both frontend and backend linters
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue