2023-03-05 15:30:46 +00:00
|
|
|
IMAGE := bij1-civi
|
2023-04-11 20:11:58 +00:00
|
|
|
COMPOSE := docker-compose
|
2023-03-05 15:30:46 +00:00
|
|
|
|
2022-10-12 15:04:04 +00:00
|
|
|
reset: stop clean build start
|
|
|
|
|
2022-04-13 10:15:53 +00:00
|
|
|
stop:
|
2023-04-11 20:11:58 +00:00
|
|
|
${COMPOSE} stop
|
2022-10-07 18:54:08 +00:00
|
|
|
|
|
|
|
clean:
|
2023-04-11 20:11:58 +00:00
|
|
|
${COMPOSE} down -v
|
2022-10-07 18:54:08 +00:00
|
|
|
|
|
|
|
start:
|
2023-04-11 20:11:58 +00:00
|
|
|
${COMPOSE} up -d
|
2022-04-13 10:15:53 +00:00
|
|
|
|
2023-08-13 20:23:40 +00:00
|
|
|
build: downloads
|
2023-05-21 05:51:56 +00:00
|
|
|
bash ./image.sh build
|
2022-04-13 10:15:53 +00:00
|
|
|
|
2023-08-13 20:23:40 +00:00
|
|
|
downloads: scripts/cv scripts/civix scripts/wp
|
2024-01-03 15:31:20 +00:00
|
|
|
bash ./scripts/download.sh
|
2023-08-13 20:23:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-04-11 20:11:58 +00:00
|
|
|
build-dev: build
|
|
|
|
|
|
|
|
reset-db:
|
|
|
|
${COMPOSE} exec --user=www-data civi /usr/local/bin/reset_db.sh
|
|
|
|
|
2022-04-13 10:15:53 +00:00
|
|
|
install:
|
2023-09-03 10:15:16 +00:00
|
|
|
${COMPOSE} exec --user=www-data civi /usr/local/bin/install.sh
|
2022-04-13 10:15:53 +00:00
|
|
|
|
|
|
|
shell:
|
2023-04-11 20:11:58 +00:00
|
|
|
${COMPOSE} exec civi bash
|
2023-04-02 14:08:21 +00:00
|
|
|
|
|
|
|
push:
|
2023-05-21 05:51:56 +00:00
|
|
|
bash ./image.sh push
|