-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (30 loc) · 851 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
TAG=devel
IMAGE=postfix
VOLUMES= \
-v ${PWD}/config:/config
ENV= \
-e USE_SASL=yes \
-e USE_TLS=yes \
-e MYHOSTNAME=home.honig.net \
-e MYORIGIN=honig.net \
-e MASQUERADE_DOMAINS=honig.net \
-e SMTPD_TLS_SECURITY_LEVEL=may \
-e BOUNCE_QUEUE_LIFETIME=1d
PORTS= \
-p 25:25
all: build
clean:
find . -name \*~ -delete
run: build
docker run ${VOLUMES} ${ENV} ${PORTS} -it ${IMAGE}:${TAG}
sasl_users: build
docker run ${VOLUMES} ${ENV} ${PORTS} -it ${IMAGE}:${TAG} update_sasldb_users
# Run the container with just a bash shell
run-bash: build
docker run ${VOLUMES} ${ENV} ${PORTS} -it --entrypoint /bin/bash ${IMAGE}:${TAG}
# Start the container and run a bash shell
exec-bash: build
docker run ${VOLUMES} ${ENV} ${PORTS} -it ${IMAGE}:${TAG} /bin/bash
build: true
docker build -t ${IMAGE}:${TAG} .
true: ;