2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 17:10:29 +01:00

Merge pull request #150 from offen/dev-setup

close homepage port, add update command
This commit is contained in:
Frederik Ring 2019-10-02 14:31:22 +02:00 committed by GitHub
commit d554f68cac
2 changed files with 19 additions and 13 deletions

View File

@ -1,22 +1,22 @@
help: help:
@echo " setup" @echo " setup"
@echo " Build the development containers and install dependencies." @echo " Build the development containers and install dependencies."
@echo " update"
@echo " Install / update dependencies in the containers."
@echo " bootstrap" @echo " bootstrap"
@echo " Set up keys and seed databases." @echo " Set up and seed databases."
@echo " IMPORTANT: this wipes any existing data in your local database." @echo " **IMPORTANT**: this wipes any existing data in your local database."
@echo " build" @echo " build"
@echo " Build the production containers." @echo " Build the production images."
@echo " secret" @echo " secret"
@echo " Generate a random base64 encoded secret" @echo " Generate a random base64 encoded secret"
setup: setup: dev-build update howto
dev-build:
@docker-compose build @docker-compose build
@docker-compose run script npm install
@docker-compose run vault npm install howto:
@docker-compose run auditorium npm install
@docker-compose run server go mod download
@docker-compose run homepage pip install --user -r requirements.txt
@echo "Successfully built containers and installed dependencies." @echo "Successfully built containers and installed dependencies."
@echo "If this is your initial setup, you can run 'make bootstrap' next" @echo "If this is your initial setup, you can run 'make bootstrap' next"
@echo "to create seed the database." @echo "to create seed the database."
@ -31,6 +31,14 @@ bootstrap:
@echo "Password: develop" @echo "Password: develop"
@echo "" @echo ""
update:
@echo "Installing / updating dependencies ..."
@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 homepage pip install --user -r requirements.txt
DOCKER_IMAGE_TAG ?= latest DOCKER_IMAGE_TAG ?= latest
ROBOTS_FILE ?= robots.txt.staging ROBOTS_FILE ?= robots.txt.staging
@ -41,4 +49,4 @@ build:
secret: secret:
@docker-compose run server make secret @docker-compose run server make secret
.PHONY: setup bootstrap build secret .PHONY: setup build bootstrap build secret

View File

@ -79,8 +79,6 @@ services:
- .:/offen - .:/offen
- homepagedeps:/root/.local - homepagedeps:/root/.local
command: make devserver command: make devserver
ports:
- 8000:8000
environment: environment:
DEBUG: 1 DEBUG: 1