snappymail/Makefile

65 lines
1.3 KiB
Makefile
Raw Normal View History

2018-02-27 06:59:21 +08:00
#!make
2018-03-30 05:43:46 +08:00
rebuild: _down
2018-02-27 06:59:21 +08:00
docker-compose build --no-cache
2018-03-30 05:43:46 +08:00
up: _up status
_up:
2018-02-27 06:59:21 +08:00
docker-compose up -d
2018-03-30 05:43:46 +08:00
stop: _stop status
_stop:
2018-02-27 06:59:21 +08:00
docker-compose stop
2018-03-30 05:43:46 +08:00
down: _down status
_down:
2018-02-27 06:59:21 +08:00
docker-compose down
2018-03-30 05:43:46 +08:00
restart: _stop _up status
2018-02-27 06:59:21 +08:00
status:
@docker-compose ps
2018-03-07 03:26:43 +08:00
tx:
@docker-compose run --no-deps --rm tx tx pull -a -s -f -d
2018-03-07 03:26:43 +08:00
2018-02-27 06:59:21 +08:00
console-node:
@docker-compose run --no-deps --rm node sh
2018-03-07 03:26:43 +08:00
console-tx:
@docker-compose run --no-deps --rm tx sh
2018-02-27 06:59:21 +08:00
console-php:
@docker-compose exec php sh
2018-03-30 05:43:46 +08:00
console: console-node
2018-02-27 06:59:21 +08:00
logs:
@docker-compose logs --tail=100 -f
logs-db:
@docker-compose logs --tail=100 -f db
logs-php:
@docker-compose logs --tail=100 -f php
logs-node:
@docker-compose logs --tail=100 -f node
logs-nginx:
@docker-compose logs --tail=100 -f nginx
logs-mail:
@docker-compose logs --tail=100 -f mail
2018-03-07 03:26:43 +08:00
logs-tx:
@docker-compose logs --tail=100 -f tx
2018-02-27 06:59:21 +08:00
2018-03-30 05:43:46 +08:00
rl-lint:
@docker-compose run --no-deps --rm node gulp lint
2018-03-07 03:26:43 +08:00
rl-dev:
2018-03-30 05:43:46 +08:00
@docker-compose run --no-deps --rm node gulp
rl-watch:
@docker-compose run --no-deps --rm node gulp watch
2018-02-27 06:59:21 +08:00
rl-build:
@docker-compose run --no-deps --rm node gulp all
rl-build-pro:
@docker-compose run --no-deps --rm node gulp all --pro
2018-03-30 05:43:46 +08:00
gpg:
docker run -it --rm -w=/var/www \
-v $(shell pwd)/.docker/.cache/.gnupg:/root/.gnupg \
-v $(shell pwd):/var/www \
ubuntu:latest bash