2023-09-02 20:18:29 +02:00
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
@echo " setup"
|
|
|
|
@echo " Build the development containers and install dependencies."
|
|
|
|
@echo " up"
|
|
|
|
@echo " Run the development server."
|
|
|
|
@echo " update"
|
|
|
|
@echo " Install / update dependencies in the development containers."
|
|
|
|
@echo " build"
|
|
|
|
@echo " Build the production assets."
|
|
|
|
|
|
|
|
setup: dev-build update
|
|
|
|
|
|
|
|
dev-build: Dockerfile.python
|
|
|
|
@docker compose build
|
|
|
|
|
|
|
|
.PHONY: up
|
|
|
|
up:
|
|
|
|
@docker compose up
|
|
|
|
|
|
|
|
update: website/requirements.txt
|
|
|
|
@echo "Installing / updating dependencies ..."
|
|
|
|
@docker compose run --rm website pip install --user -r requirements.txt
|
|
|
|
@echo "Successfully built containers and installed dependencies."
|
|
|
|
|
|
|
|
SITEURL ?= http://localhost:6000
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
2023-09-02 20:22:18 +02:00
|
|
|
@docker build --build-arg siteurl=${SITEURL} -t offen/software-builder-website -f build/Dockerfile .
|
2023-09-02 20:18:29 +02:00
|
|
|
@rm -rf output && mkdir output
|
2023-09-02 20:22:18 +02:00
|
|
|
@docker create --entrypoint=bash --name assets offen/software-builder-website
|
2023-09-02 20:18:29 +02:00
|
|
|
@docker cp assets:/code/website/output/. ./output/
|
|
|
|
@docker rm assets
|
2023-09-02 20:22:18 +02:00
|
|
|
@docker rmi offen/software-builder-website
|