2
0
mirror of https://github.com/offen/website.git synced 2024-11-25 10:10:28 +01:00
website/Makefile

44 lines
1.4 KiB
Makefile
Raw Normal View History

help:
@echo " setup"
2019-09-05 14:02:01 +02:00
@echo " Build the development containers and install dependencies."
@echo " update"
@echo " Install / update dependencies in the containers."
@echo " bootstrap"
@echo " Set up 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 images."
setup: dev-build update howto
dev-build:
@docker-compose build
howto:
@echo "Successfully built containers and installed dependencies."
@echo "If this is your initial setup, you can run 'make bootstrap' next"
@echo "to create seed the database."
bootstrap:
@echo "Bootstrapping Server service ..."
@docker-compose run server make bootstrap
@echo ""
@echo "You can now log into the development backend using the following credentials:"
@echo ""
@echo "Email: develop@offen.dev"
@echo "Password: develop"
@echo ""
update:
@echo "Installing / updating dependencies ..."
@docker-compose run homepage pip install --user -r requirements.txt
2019-09-11 12:44:51 +02:00
DOCKER_IMAGE_TAG ?= latest
ROBOTS_FILE ?= robots.txt.staging
2019-09-11 12:44:51 +02:00
2019-09-05 11:18:42 +02:00
build:
2019-09-11 12:44:51 +02:00
@docker build -t offen/server:${DOCKER_IMAGE_TAG} -f build/server/Dockerfile .
@docker build --build-arg siteurl=${SITEURL} --build-arg robots=${ROBOTS_FILE} -t offen/proxy:${DOCKER_IMAGE_TAG} -f build/proxy/Dockerfile .
2019-09-05 11:18:42 +02:00
.PHONY: setup build bootstrap build secret