-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (43 loc) · 1.34 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
CONTAINER_NAME ?= $(shell basename -s .git `git config --get remote.origin.url`)
.PHONY: all
all: clean dist
.PHONY: kill
kill:
@docker stop ${CONTAINER_NAME} || echo no container to remove && true
.PHONY: rm
rm: kill
@docker rm -f ${CONTAINER_NAME} || echo no container to remove && true
.PHONY: clean
clean: rm kill
@docker image rm -f ${CONTAINER_NAME} || echo no image to remove && true
.PHONY: dist
dist: clean
docker build -t ${CONTAINER_NAME} . \
--build-arg BUILD_TYPE="nightly" \
--build-arg BITLBEE_TAG="master" \
--build-arg DISCORD_ENABLED=1 \
--build-arg FACEBOOK_ENABLED=1 \
--build-arg SKYPEWEB_ENABLED=1 \
--build-arg SLACK_ENABLED=1 \
--build-arg HANGOUTS_ENABLED=1 \
--build-arg STEAM_ENABLED=1 \
--build-arg TELEGRAM_ENABLED=1 \
--build-arg SIPE_ENABLED=1 \
--build-arg ROCKETCHAT_ENABLED=1 \
--build-arg MATRIX_ENABLED=1 \
--build-arg MATTERMOST_ENABLED=1 \
--build-arg MASTODON_ENABLED=1 \
--build-arg SIGNAL_ENABLED=1
.PHONY: run
run:
docker run -d \
--name ${CONTAINER_NAME} \
--restart=always \
-p 0.0.0.0:6667:6667 \
${CONTAINER_NAME}:latest
.PHONY: shell
shell:
docker exec -it ${CONTAINER_NAME} /bin/bash
.PHONY: docker-webhook
docker-webhook:
curl -X POST https://hub.docker.com/api/build/v1/source/${DOCKER_WEBHOOK_SOURCE}/trigger/${DOCKER_WEBHOOK_TRIGGER}/call/