-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (36 loc) · 992 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
39
40
41
42
43
44
45
46
47
IMG_NAME=bandnoticeboard/forestmq:0.4.0
build:
mkdir build
cmake -S . -B build
cd build
make
# Development requirements
# This will install all the required development libraries on a Mac.
install_deps_mac:
brew install gnutls
brew install ulfius
brew install check
brew install cmocka
brew install doxygen
install_deps_linux:
sudo apt install -y libulfius-dev uwsc
sudo apt install -y libmicrohttpd-dev
sudo apt install -y libjansson-dev
sudo apt install -y ibcurl4-gnutls-dev
sudo apt install -y ibgnutls28-dev
sudo apt install -y ibgcrypt20-dev
sudo apt install -y ibsystemd-dev
docs_init:
doxygen -g Doxyfile
docker-build-mac:
docker build --tag $(IMG_NAME) .
docker-build-linux:
export DOCKER_DEFAULT_PLATFORM=linux/amd64 && docker build --tag $(IMG_NAME) .
docker-run:
docker run -p 8005:8005 $(IMG_NAME)
docker-push:
docker push $(IMG_NAME)
docker-remove:
docker rmi $(IMG_NAME)
docker_img_exec:
docker run --rm -it --entrypoint /bin/bash $(IMG_NAME)