2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 12:10:25 +02:00
website/Makefile

33 lines
1.0 KiB
Makefile
Raw Normal View History

2019-09-05 14:02:01 +02:00
help:
@echo " setup"
2019-09-05 14:02:01 +02:00
@echo " Build the development containers and install dependencies."
@echo " bootstrap"
@echo " Set up keys and seed databases."
@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."
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
@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 Server service ..."
@docker-compose run server make bootstrap
2019-09-05 11:18:42 +02:00
build:
2019-09-09 20:01:22 +02:00
@docker build -t offen/server:latest -f build/server/Dockerfile .
@docker build -t offen/proxy:latest -f build/proxy/Dockerfile .
2019-09-05 11:18:42 +02:00
2019-09-05 21:05:14 +02:00
secret:
@docker-compose run server make secret
.PHONY: setup bootstrap build secret