43 lines
801 B
Makefile
43 lines
801 B
Makefile
IMAGE := bij1-civi
|
|
COMPOSE := docker-compose
|
|
|
|
reset: stop clean build start
|
|
|
|
stop:
|
|
${COMPOSE} stop
|
|
|
|
clean:
|
|
${COMPOSE} down -v
|
|
|
|
start:
|
|
${COMPOSE} up -d
|
|
|
|
build: downloads
|
|
bash ./image.sh build
|
|
|
|
downloads: scripts/cv scripts/civix scripts/wp
|
|
bash ./scripts/download.sh
|
|
|
|
scripts/cv:
|
|
curl -LsS --output scripts/cv https://download.civicrm.org/cv/cv.phar
|
|
|
|
scripts/wp:
|
|
curl -LsS --output scripts/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
|
|
|
scripts/civix:
|
|
curl -LsS --output scripts/civix https://download.civicrm.org/civix/civix.phar
|
|
|
|
build-dev: build
|
|
|
|
reset-db:
|
|
${COMPOSE} exec --user=www-data civi /usr/local/bin/reset_db.sh
|
|
|
|
install:
|
|
${COMPOSE} exec --user=www-data civi /usr/local/bin/install.sh
|
|
|
|
shell:
|
|
${COMPOSE} exec civi bash
|
|
|
|
push:
|
|
bash ./image.sh push
|