mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-22 21:28:24 +00:00
Improve make commands documentation
This commit is contained in:
parent
752322e396
commit
3433a7c046
2
Makefile
2
Makefile
@ -7,7 +7,7 @@ USERID ?= $$(id -u)
|
|||||||
build: ## Build all docker images
|
build: ## Build all docker images
|
||||||
cd build/ && make build
|
cd build/ && make build
|
||||||
|
|
||||||
config.json:
|
config.json: ## Generate config.json configuration file interactively
|
||||||
@$(MAKE) -s upgrade-to-tutor
|
@$(MAKE) -s upgrade-to-tutor
|
||||||
@$(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 \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.PHONY: env
|
.PHONY: env
|
||||||
PWD = $$(pwd)
|
PWD = $$(pwd)
|
||||||
|
|
||||||
env: ## Create the platform environment
|
env: ## Generate the environment from templates and configuration values
|
||||||
@$(MAKE) -s -C .. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)/env
|
@$(MAKE) -s -C .. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)/env
|
||||||
|
@ -6,11 +6,11 @@ podexec = kubectl exec -n openedx -it $$($(call podname,$(1))) -- $(2)
|
|||||||
|
|
||||||
all: configure deploy databases ## Provision a full platform from scratch
|
all: configure deploy databases ## Provision a full platform from scratch
|
||||||
|
|
||||||
configure:
|
configure: ## Interactive configuration
|
||||||
@$(MAKE) -s -C ../.. --always-make config.json
|
@$(MAKE) -s -C ../.. --always-make config.json
|
||||||
@$(MAKE) -s env
|
@$(MAKE) -s env
|
||||||
|
|
||||||
env:
|
env: ## Generate the environment from templates and configuration values
|
||||||
@$(MAKE) -s -C .. env
|
@$(MAKE) -s -C .. env
|
||||||
@$(MAKE) -s -C ../.. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)/env
|
@$(MAKE) -s -C ../.. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)/env
|
||||||
|
|
||||||
@ -96,8 +96,14 @@ create-staff-user: ## Create a user with admin rights: make create-staff-user US
|
|||||||
|
|
||||||
##################### Various minikube command
|
##################### Various minikube command
|
||||||
|
|
||||||
minikube-open:
|
minikube-start: ## Start minikube
|
||||||
minikube service nginx --namespace=openedx
|
minikube start
|
||||||
|
minikube-stop: ## Stop minikube
|
||||||
|
minikube stop
|
||||||
|
minikube-dashboard: ## Open the minikube dashboard
|
||||||
|
minikube dashboard
|
||||||
|
minikube-ingress: ## Enable the ingress addon
|
||||||
|
minikube addons enable ingress
|
||||||
|
|
||||||
##################### Various k8s commands
|
##################### Various k8s commands
|
||||||
|
|
||||||
@ -114,6 +120,6 @@ k8s-admin-token: ## Print the admin token required to log in the dashboard
|
|||||||
|
|
||||||
ESCAPE =
|
ESCAPE =
|
||||||
help: ## Print this help
|
help: ## Print this help
|
||||||
@grep -E '^([a-zA-Z_-]+:.*?## .*|######* .+)$$' Makefile \
|
@grep -E '^([a-zA-Z0-9_-]+:.*?## .*|######* .+)$$' Makefile \
|
||||||
| sed 's/######* \(.*\)/\n $(ESCAPE)[1;31m\1$(ESCAPE)[0m/g' \
|
| sed 's/######* \(.*\)/\n $(ESCAPE)[1;31m\1$(ESCAPE)[0m/g' \
|
||||||
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[33m%-30s\033[0m %s\n", $$1, $$2}'
|
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[33m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
@ -46,11 +46,11 @@ update: ## Download most recent images
|
|||||||
|
|
||||||
##################### Configuration
|
##################### Configuration
|
||||||
|
|
||||||
configure:
|
configure: ## Interactive configuration
|
||||||
@$(MAKE) -s -C ../.. --always-make config.json
|
@$(MAKE) -s -C ../.. --always-make config.json
|
||||||
@$(MAKE) -s env
|
@$(MAKE) -s env
|
||||||
|
|
||||||
env:
|
env: ## Generate the environment from templates and configuration values
|
||||||
@$(MAKE) -s -C .. env
|
@$(MAKE) -s -C .. env
|
||||||
@$(MAKE) -s -C ../.. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)
|
@$(MAKE) -s -C ../.. substitute TEMPLATES=$(PWD)/templates OUTPUT=$(PWD)
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ In the following, we assume you have a working Kubernetes platform. For a start,
|
|||||||
|
|
||||||
Start Minikube::
|
Start Minikube::
|
||||||
|
|
||||||
minikube start
|
make minikube-start
|
||||||
|
|
||||||
When minikube starts, it spawns a virtual machine (VM) which you can configure in your VM manager: on most platforms, this is Virtualbox. You should configure your VM to have at least 4Gb RAM; otherwise, database migrations will crash halfway, and that's a nasty issue...
|
When minikube starts, it spawns a virtual machine (VM) which you can configure in your VM manager: on most platforms, this is Virtualbox. You should configure your VM to have at least 4Gb RAM; otherwise, database migrations will crash halfway, and that's a nasty issue...
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user