2019-06-20 12:57:36 +02:00
|
|
|
help:
|
|
|
|
@echo " setup"
|
|
|
|
@echo " Build the containers and install dependencies."
|
|
|
|
@echo " bootstrap"
|
|
|
|
@echo " Create a KMS key and initialize the database."
|
|
|
|
@echo " IMPORTANT: this wipes any existing data in your local database."
|
|
|
|
|
|
|
|
setup:
|
|
|
|
@docker-compose build
|
|
|
|
@docker-compose run script npm install
|
|
|
|
@docker-compose run vault npm install
|
|
|
|
@docker-compose run auditorium npm install
|
|
|
|
@docker-compose run server go mod download
|
|
|
|
@docker-compose run kms go mod download
|
2019-07-05 19:54:54 +02:00
|
|
|
@docker-compose run accounts pip install --user -r requirements.txt -r requirements-dev.txt
|
2019-07-25 16:14:37 +02:00
|
|
|
@docker-compose run homepage pip install --user -r requirements.txt
|
2019-06-20 12:57:36 +02:00
|
|
|
@echo "Successfully built containers and installed dependencies."
|
|
|
|
@echo "If this is your initial setup, you can run 'make bootstrap' next"
|
|
|
|
@echo "to create the needed local keys and seed the database."
|
|
|
|
|
|
|
|
bootstrap:
|
2019-07-20 16:27:56 +02:00
|
|
|
@echo "Bootstrapping KMS service ..."
|
2019-06-20 12:57:36 +02:00
|
|
|
@docker-compose run kms make bootstrap
|
2019-07-20 16:27:56 +02:00
|
|
|
@echo "Bootstrapping Server service ..."
|
2019-06-20 12:57:36 +02:00
|
|
|
@docker-compose run server make bootstrap
|
2019-07-20 16:27:56 +02:00
|
|
|
@echo "Bootstrapping Accounts service ..."
|
2019-07-10 17:17:50 +02:00
|
|
|
@docker-compose run accounts make bootstrap
|
2019-06-20 12:57:36 +02:00
|
|
|
|
|
|
|
.PHONY: setup bootstrap
|