-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (38 loc) · 1.19 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
name=sia-container
version=1.5.6
default: release
all: release alpine pi dev
release:
docker build -f Dockerfile \
--build-arg SIA_VERSION=$(version) \
-t $(name) -t nebulouslabs/sia:$(version) -t nebulouslabs/sia:latest \
.
alpine:
docker build -f alpine/Dockerfile \
--build-arg SIA_VERSION=$(version) \
-t $(name) -t nebulouslabs/sia:alpine-$(version) -t nebulouslabs/sia:alpine-latest \
.
pi:
docker build -f pi/Dockerfile \
--build-arg SIA_VERSION=$(version) \
-t $(name) -t nebulouslabs/sia:pi-$(version) -t nebulouslabs/sia:pi-latest \
.
dev:
docker build -f dev/Dockerfile \
--build-arg "SHA=$(sha)" \
--build-arg "TAG=$(tag)" \
-t $(name) -t nebulouslabs/sia:dev \
.
dev-debian:
docker build -f dev-debian/Dockerfile \
--build-arg "SHA=$(sha)" \
--build-arg "TAG=$(tag)" \
-t $(name) -t nebulouslabs/sia:dev-debian \
.
debug:
docker build -f debug/Dockerfile -t $(name) -t nebulouslabs/sia:debug .
ci:
docker build -f ci/Dockerfile -t $(name) -t nebulouslabs/sia:ci .
stop:
docker stop $(docker ps -a -q --filter "name=$(name)") && docker rm $(docker ps -a -q --filter "name=$(name)")
.PHONY: all default release alpine pi dev debug ci stop dev-debian