-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
84 lines (72 loc) · 3.43 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# BUILD_TYPE can be any of [runtime, testing]
BUILD_TYPE=runtime
PUSH_TYPE=runtime
TAG=${USER}_devel
FROM_TAG=${TAG}
CACHE_TAG=${TAG}
# arm64 architecture
build_base_arm64:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker build -t martindeegan/acrobat:${TAG}_base_arm64 \
--file dockerfiles/base/Dockerfile \
--build-arg FROM_IMAGE=nvcr.io/nvidia/l4t-base:r32.3.1 \
.
build_dependencies_arm64:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker build -t martindeegan/acrobat:${TAG}_dependencies_arm64 \
--file dockerfiles/dependencies/Dockerfile \
--cache-from martindeegan/acrobat:${CACHE_TAG}_dependencies_arm64 \
--build-arg FROM_IMAGE=martindeegan/acrobat:${FROM_TAG}_base_arm64 \
.
build_arm64:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker build -t martindeegan/acrobat:${TAG}_${BUILD_TYPE}_arm64 \
--file dockerfiles/${BUILD_TYPE}/Dockerfile \
--cache-from martindeegan/acrobat:${CACHE_TAG}_${BUILD_TYPE}_arm64 \
--build-arg FROM_IMAGE=martindeegan/acrobat:${FROM_TAG}_dependencies_arm64 \
.
push_arm64:
docker push martindeegan/acrobat:${TAG}_${PUSH_TYPE}_arm64
# x86_64 architecture
build_base_x86_64:
docker build -t martindeegan/acrobat:${TAG}_base_x86_64 \
--file dockerfiles/base/Dockerfile \
--cache-from martindeegan/acrobat:latest_base_x86_64 \
--build-arg FROM_IMAGE=nvidia/cuda:10.2-devel-ubuntu18.04 \
.
build_dependencies_x86_64:
docker build -t martindeegan/acrobat:${TAG}_dependencies_x86_64 \
--file dockerfiles/dependencies/Dockerfile \
--cache-from martindeegan/acrobat:${CACHE_TAG}_dependencies_x86_64 \
--build-arg FROM_IMAGE=martindeegan/acrobat:${FROM_TAG}_base_x86_64 \
.
build_x86_64:
docker build -t martindeegan/acrobat:${TAG}_${BUILD_TYPE}_x86_64 \
--file dockerfiles/${BUILD_TYPE}/Dockerfile \
--cache-from martindeegan/acrobat:${CACHE_TAG}_${BUILD_TYPE}_x86_64 \
--build-arg FROM_IMAGE=martindeegan/acrobat:${FROM_TAG}_dependencies_x86_64 \
.
push_x86_64:
docker push martindeegan/acrobat:${TAG}_${PUSH_TYPE}_x86_64
pull_latest:
docker pull martindeegan/acrobat:latest_base_x86_64
docker pull martindeegan/acrobat:latest_dependencies_x86_64
docker pull martindeegan/acrobat:latest_runtime_x86_64
docker pull martindeegan/acrobat:latest_base_arm64
docker pull martindeegan/acrobat:latest_dependencies_arm64
docker pull martindeegan/acrobat:latest_runtime_arm64
pull_latest_arm64:
docker pull martindeegan/acrobat:latest_base_arm64
docker pull martindeegan/acrobat:latest_dependencies_arm64
docker pull martindeegan/acrobat:latest_runtime_arm64
pull_latest_x86_64:
docker pull martindeegan/acrobat:latest_base_x86_64
docker pull martindeegan/acrobat:latest_dependencies_x86_64
docker pull martindeegan/acrobat:latest_runtime_x86_64
tag_latest:
docker tag martindeegan/acrobat:latest_base_x86_64 martindeegan/acrobat:${TAG}_base_x86_64
docker tag martindeegan/acrobat:latest_dependencies_x86_64 martindeegan/acrobat:${TAG}_dependencies_x86_64
docker tag martindeegan/acrobat:latest_runtime_x86_64 martindeegan/acrobat:${TAG}_runtime_x86_64
docker tag martindeegan/acrobat:latest_base_arm64 martindeegan/acrobat:${TAG}_base_arm64
docker tag martindeegan/acrobat:latest_dependencies_arm64 martindeegan/acrobat:${TAG}_dependencies_arm64
docker tag martindeegan/acrobat:latest_runtime_arm64 martindeegan/acrobat:${TAG}_runtime_arm64