mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-08 16:14:08 +00:00
Simplify env/configure commands
"env" now only generates the environment, and depends only on config.json, which is run only when necessary. There exists only one "make configure" command, which force-runs config.json and builds the env.
This commit is contained in:
parent
fbef486ad4
commit
0a3812cf4f
11
Makefile
11
Makefile
@ -7,13 +7,22 @@ USERID ?= $$(id -u)
|
|||||||
build: ## Build all docker images
|
build: ## Build all docker images
|
||||||
cd build/ && make build
|
cd build/ && make build
|
||||||
|
|
||||||
configure:
|
config.json:
|
||||||
@$(MAKE) -s -C build/ build-configurator 1> /dev/null
|
@$(MAKE) -s -C build/ build-configurator 1> /dev/null
|
||||||
@docker run --rm -it \
|
@docker run --rm -it \
|
||||||
--volume="$(PWD):/openedx/config/" \
|
--volume="$(PWD):/openedx/config/" \
|
||||||
-e USERID=$(USERID) -e SILENT=$(SILENT) \
|
-e USERID=$(USERID) -e SILENT=$(SILENT) \
|
||||||
regis/openedx-configurator:hawthorn
|
regis/openedx-configurator:hawthorn
|
||||||
|
|
||||||
|
substitute: config.json
|
||||||
|
@docker run --rm -it \
|
||||||
|
--volume="$(PWD)/config.json:/openedx/config/config.json" \
|
||||||
|
--volume="$(TEMPLATES):/openedx/templates" \
|
||||||
|
--volume="$(OUTPUT):/openedx/output" \
|
||||||
|
-e USERID=$(USERID) -e SILENT=$(SILENT) $(CONFIGURE_OPTS) \
|
||||||
|
regis/openedx-configurator:hawthorn \
|
||||||
|
configurator substitute /openedx/templates/ /openedx/output/
|
||||||
|
|
||||||
singleserver: ## Configure and run a ready-to-go Open edX platform
|
singleserver: ## Configure and run a ready-to-go Open edX platform
|
||||||
cd deploy/ && make all
|
cd deploy/ && make all
|
||||||
|
|
||||||
|
@ -3,17 +3,8 @@ PWD ?= $$(pwd)
|
|||||||
|
|
||||||
all: environment update android ## Configure and build a development Android app
|
all: environment update android ## Configure and build a development Android app
|
||||||
|
|
||||||
configure:
|
env: ## Generate the environment
|
||||||
@$(MAKE) -C .. configure
|
@$(MAKE) -s -C .. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)/config
|
||||||
|
|
||||||
env: configure ## Generate the environment
|
|
||||||
@docker run --rm -it \
|
|
||||||
--volume="$(PWD)/../:/openedx/config/" \
|
|
||||||
--volume="$(PWD)/templates:/openedx/templates" \
|
|
||||||
--volume="$(PWD)/config:/openedx/output" \
|
|
||||||
-e USERID=$(USERID) \
|
|
||||||
regis/openedx-configurator:hawthorn \
|
|
||||||
configurator substitute /openedx/templates/ /openedx/output/
|
|
||||||
|
|
||||||
update: ## Download most recent Android image
|
update: ## Download most recent Android image
|
||||||
docker pull regis/openedx-android:latest
|
docker pull regis/openedx-android:latest
|
||||||
|
@ -1,22 +1,5 @@
|
|||||||
.PHONY: env
|
.PHONY: env
|
||||||
PWD = $$(pwd)
|
PWD = $$(pwd)
|
||||||
|
|
||||||
configure:
|
env: ## Create the platform environment
|
||||||
@$(MAKE) -s -C .. configure
|
@$(MAKE) -s -C .. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)/env
|
||||||
|
|
||||||
env: configure ## Create the platform environment
|
|
||||||
@docker run --rm -it \
|
|
||||||
--volume="$(PWD)/../:/openedx/config/" \
|
|
||||||
--volume="$(PWD)/templates/apps:/openedx/templates" \
|
|
||||||
--volume="$(PWD)/env:/openedx/output" \
|
|
||||||
-e USERID=$(USERID) -e SILENT=$(SILENT) $(CONFIGURE_OPTS) \
|
|
||||||
regis/openedx-configurator:hawthorn \
|
|
||||||
configurator substitute /openedx/templates/ /openedx/output/
|
|
||||||
@docker run --rm -it \
|
|
||||||
--volume="$(PWD)/../:/openedx/config/" \
|
|
||||||
--volume="$(PWD)/templates/project:/openedx/templates" \
|
|
||||||
--volume="$(PWD):/openedx/output" \
|
|
||||||
-e USERID=$(USERID) -e SILENT=$(SILENT) $(CONFIGURE_OPTS) \
|
|
||||||
regis/openedx-configurator:hawthorn \
|
|
||||||
configurator substitute /openedx/templates/ /openedx/output/
|
|
||||||
|
|
||||||
|
@ -47,17 +47,12 @@ update: ## Download most recent images
|
|||||||
##################### Configuration
|
##################### Configuration
|
||||||
|
|
||||||
configure:
|
configure:
|
||||||
@$(MAKE) -s -C .. configure
|
@$(MAKE) -s -C ../.. --always-make config.json
|
||||||
|
@$(MAKE) -s env
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@$(MAKE) -s -C .. env
|
@$(MAKE) -s -C .. env
|
||||||
@docker run --rm -it \
|
@$(MAKE) -s -C ../.. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)
|
||||||
--volume="$(PWD)/../../:/openedx/config/" \
|
|
||||||
--volume="$(PWD)/templates/:/openedx/templates" \
|
|
||||||
--volume="$(PWD):/openedx/output" \
|
|
||||||
-e USERID=$(USERID) \
|
|
||||||
regis/openedx-configurator:hawthorn \
|
|
||||||
configurator substitute /openedx/templates/ /openedx/output/
|
|
||||||
|
|
||||||
##################### Database
|
##################### Database
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user