2019-09-05 14:02:01 +02:00
|
|
|
|
2019-06-20 12:57:36 +02:00
|
|
|
help:
|
|
|
|
@echo " setup"
|
2019-09-05 14:02:01 +02:00
|
|
|
@echo " Build the development containers and install dependencies."
|
2019-06-20 12:57:36 +02:00
|
|
|
@echo " bootstrap"
|
2019-07-26 10:48:38 +02:00
|
|
|
@echo " Set up keys and seed databases."
|
2019-06-20 12:57:36 +02:00
|
|
|
@echo " IMPORTANT: this wipes any existing data in your local database."
|
2019-09-05 14:02:01 +02:00
|
|
|
@echo " build"
|
|
|
|
@echo " Build the production containers."
|
2019-06-20 12:57:36 +02:00
|
|
|
|
|
|
|
setup:
|
|
|
|
@docker-compose build
|
2019-08-12 11:04:33 +02:00
|
|
|
@docker-compose run accounts pip install --user -r requirements.txt -r requirements-dev.txt
|
2019-06-20 12:57:36 +02:00
|
|
|
@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
|
|
|
|
@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
|
|
|
|
2019-09-05 11:18:42 +02:00
|
|
|
build:
|
|
|
|
@docker build -t offen-server:latest -f build/server/Dockerfile .
|
|
|
|
@docker build -t offen-proxy:latest -f build/proxy/Dockerfile .
|
|
|
|
|
|
|
|
.PHONY: setup bootstrap build
|