mirror of
https://github.com/offen/website.git
synced 2024-12-25 14:20:22 +01:00
merge all ops tasks into single cli
This commit is contained in:
parent
aa33a2110e
commit
7c4b39e6d6
11
Makefile
11
Makefile
@ -10,26 +10,23 @@ help:
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
secret:
|
||||
@docker-compose run server make secret
|
||||
|
||||
.PHONY: setup bootstrap build secret
|
||||
|
@ -30,7 +30,7 @@ services:
|
||||
DEVELOPMENT: '1'
|
||||
COOKIE_EXCHANGE_SECRET: 3P+w6QetKO3Kn8h1YyRlCw==
|
||||
EVENT_RETENTION_PERIOD: 4464h
|
||||
ACCOUNT_USER_EMAIL_SALT: S6ielTPzd/AGR88FI25c4Q==
|
||||
ACCOUNT_USER_EMAIL_SALT: JuhbRA4lCdo8rt5qVdLpk3==
|
||||
command: refresh run
|
||||
links:
|
||||
- server_database
|
||||
|
Loading…
Reference in New Issue
Block a user