forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.mk
50 lines (42 loc) · 2.32 KB
/
options.mk
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
47
48
49
50
# DEFAULT DEVSTACK OPTIONS
# Included into Makefile and exported to command environment.
# Defaults are listed in this file.
# Local git-ignored overrides can be configured by creating `options.local.mk`.
# Variables are set here with ?= to allow for overriding them on the command line.
# Folder in which we looks for repositories.
# Defaults to parent.
DEVSTACK_WORKSPACE ?= $(shell pwd)/..
# Name of Docker Compose project.
# See https://docs.docker.com/compose/reference/envvars/#compose_project_name
# Defaults to 'devstack'.
COMPOSE_PROJECT_NAME ?= devstack
# increase Docker Compose HTTP timeout so that devstack provisioning does not fail in unstable networks
COMPOSE_HTTP_TIMEOUT=180
# Whether we should always copy programs to LMS cache upon LMS startup.
# If 'true', then run `make dev.cache-programs` whenever we bring up
# containers.
# Defaults to false.
ALWAYS_CACHE_PROGRAMS ?= false
# FileSystem Synchronization Strategy.
# How should we synchronize files between the host machine and the Docker containers?
# Options are 'local-mount', 'nfs', and 'docker-sync'.
# Note that 'local-mount' is the most tested and supported with edX's Devstack
# and 'docker-sync' the least.
FS_SYNC_STRATEGY ?= local-mounts
# Services that are pulled, provisioned, run, and checked by default
# when no services are specified manually.
# TODO: Re-evaluate this list and consider paring it down to a tighter core.
# The current value was chosen such that it would not change the existing
# Devstack behavior.
DEFAULT_SERVICES ?= lms+studio+ecommerce+discovery+credentials+forum+edx_notes_api+registrar+gradebook+program-console+frontend-app-publisher
# List of all services with database migrations.
# Services must provide a Makefile target named: $(service)-update-db
# Note: This list should contain _all_ db-backed services, even if not
# configured to run; the list will be filtered later against $(DEFAULT_SERVICES)
DB_SERVICES ?= credentials discovery ecommerce lms registrar studio
# List of Makefile targets to run database migrations, in the form $(service)-update-db
# Services will only have their migrations added here
# if the service is present in both $(DEFAULT_SERVICES) and $(DB_SERVICES).
DB_MIGRATION_TARGETS = $(foreach db_service,$(DB_SERVICES),\
$(if $(filter $(db_service),$(subst +, ,$(DEFAULT_SERVICES))),\
$(db_service)-update-db))