2019-06-20 12:57:36 +02:00
|
|
|
help:
|
|
|
|
@echo " setup"
|
2019-09-05 14:02:01 +02:00
|
|
|
@echo " Build the development containers and install dependencies."
|
2019-10-02 14:29:34 +02:00
|
|
|
@echo " update"
|
|
|
|
@echo " Install / update dependencies in the containers."
|
2019-06-20 12:57:36 +02:00
|
|
|
@echo " bootstrap"
|
2019-10-02 14:29:34 +02:00
|
|
|
@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"
|
2019-10-02 14:29:34 +02:00
|
|
|
@echo " Build the production images."
|
2019-06-20 12:57:36 +02:00
|
|
|
|
2019-10-02 14:29:34 +02:00
|
|
|
setup: dev-build update howto
|
|
|
|
|
|
|
|
dev-build:
|
2019-06-20 12:57:36 +02:00
|
|
|
@docker-compose build
|
2019-10-02 14:29:34 +02:00
|
|
|
|
|
|
|
howto:
|
2019-06-20 12:57:36 +02:00
|
|
|
@echo "Successfully built containers and installed dependencies."
|
|
|
|
@echo "If this is your initial setup, you can run 'make bootstrap' next"
|
2019-10-10 09:25:16 +02:00
|
|
|
@echo "to create and seed the database."
|
2019-06-20 12:57:36 +02:00
|
|
|
|
|
|
|
bootstrap:
|
2019-07-20 16:27:56 +02:00
|
|
|
@echo "Bootstrapping Server service ..."
|
2019-10-09 20:34:31 +02:00
|
|
|
@docker-compose run server bootstrap
|
2019-09-27 20:49:44 +02:00
|
|
|
@echo ""
|
|
|
|
@echo "You can now log into the development backend using the following credentials:"
|
|
|
|
@echo ""
|
|
|
|
@echo "Email: develop@offen.dev"
|
|
|
|
@echo "Password: develop"
|
|
|
|
@echo ""
|
2019-06-20 12:57:36 +02:00
|
|
|
|
2019-10-02 14:29:34 +02:00
|
|
|
update:
|
|
|
|
@echo "Installing / updating dependencies ..."
|
|
|
|
@docker-compose run homepage pip install --user -r requirements.txt
|
2019-10-10 09:25:16 +02:00
|
|
|
@echo "Applying pending database migrations ..."
|
|
|
|
@docker-compose run server migrate
|
2019-10-02 14:29:34 +02:00
|
|
|
|
2019-09-11 12:44:51 +02:00
|
|
|
DOCKER_IMAGE_TAG ?= latest
|
2019-09-29 16:08:41 +02:00
|
|
|
ROBOTS_FILE ?= robots.txt.staging
|
2019-09-11 12:44:51 +02:00
|
|
|
|
2019-09-05 11:18:42 +02:00
|
|
|
build:
|
2019-09-29 16:08:41 +02:00
|
|
|
@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
|
|
|
|
2019-10-02 14:29:34 +02:00
|
|
|
.PHONY: setup build bootstrap build secret
|