2
0
mirror of https://github.com/offen/website.git synced 2024-12-23 05:20:21 +01:00
website/Makefile

33 lines
1.2 KiB
Makefile
Raw Normal View History

help:
@echo " setup"
@echo " Build the containers and install dependencies."
@echo " bootstrap"
@echo " Set up keys and seed databases."
@echo " IMPORTANT: this wipes any existing data in your local database."
setup:
@docker-compose build
@docker-compose run accounts pip install --user -r requirements.txt -r requirements-dev.txt
@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:
@echo "Bootstrapping KMS service ..."
@docker-compose run kms make bootstrap
@echo "Bootstrapping Server service ..."
@docker-compose run server make bootstrap
@echo "Bootstrapping Accounts service ..."
@docker-compose run accounts make bootstrap
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