-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 1.09 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
# Where the docker host is located. Useful when using remote docker hosts.
DOCKER_HOST_IP ?= localhost
# Function to check if a command exists and exit if it does not.
check_dependency = @if command -v "${1}" &> /dev/null ; then true ; else echo "dependency '${1}' is not installed or not available in the PATH" ; exit 1 ; fi
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
dependencies: ## Check to make sure dependency tools are installed
# Check to make sure dependent tools are available.
$(call check_dependency,docker)
devserver: dependencies ## Start the dev environment server. This will be run in the foreground.
@docker compose -p fsk \
-f ./deployments/dev/app.docker-compose.yml \
up --build
stopdevserver: ## Shut down the dev app server.
# Destroying dev server containers.
@docker compose -p fsk \
-f ./deployments/dev/app.docker-compose.yml \
down
cleandevserver: stopdevserver ## Shut down the dev app server.
# Destroying dev server data.
@docker volume rm fsk_denocache || true