43 lines
873 B
Makefile
43 lines
873 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
|
|
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 bash -c "rm /var/www/civi/wp-content/uploads/civicrm/civicrm.settings.php; sh /usr/local/bin/install.sh"
|
|
|
|
shell:
|
|
${COMPOSE} exec civi bash
|
|
|
|
push:
|
|
bash ./image.sh push
|