forked from NVIDIA/nvidia-docker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
156 lines (129 loc) · 8.86 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
DOCKER ?= docker
VERSION := 2.0.3
PKG_REV := 1
RUNTIME_VERSION := 2.0.0
DIST_DIR := $(CURDIR)/dist
.NOTPARALLEL:
.PHONY: all
all: ubuntu18.04 ubuntu16.04 ubuntu14.04 debian9 debian8 centos7 amzn2 amzn1
ubuntu18.04: $(addsuffix -ubuntu18.04, 18.03.1 17.12.1)
ubuntu16.04: $(addsuffix -ubuntu16.04, 18.03.1 18.03.0 17.12.1 17.12.0 17.09.1 17.09.0 17.06.2 17.03.2 1.13.1 1.12.6)
ubuntu14.04: $(addsuffix -ubuntu14.04, 18.03.1 18.03.0 17.12.1 17.09.1 17.06.2 17.03.2)
debian9: $(addsuffix -debian9, 18.03.1 18.03.0 17.12.1 17.12.0 17.09.1 17.09.0 17.06.2 17.03.2)
debian8: $(addsuffix -debian8, 18.03.1 18.03.0 17.12.1 17.09.1 17.06.2)
centos7: $(addsuffix -centos7, 18.03.1.ce 18.03.0.ce 17.12.1.ce 17.12.0.ce 17.09.1.ce 17.09.0.ce 17.06.2.ce 17.03.2.ce 1.13.1 1.12.6)
amzn2: $(addsuffix -amzn2, 17.06.2.ce)
amzn1: $(addsuffix -amzn1, 18.03.1.ce 17.12.1.ce 17.09.1.ce 17.06.2.ce 17.03.2.ce)
18.03.1-ubuntu18.04:
$(DOCKER) build --build-arg VERSION_ID="18.04" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker18.03.1-1" \
--build-arg DOCKER_VERSION="docker-ce (= 18.03.1~ce~3-0~ubuntu) | docker-ee (= 18.03.1~ee~3-0~ubuntu)" \
--build-arg PKG_VERS="$(VERSION)+docker18.03.1" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/ubuntu:18.04-docker18.03.1" -f Dockerfile.ubuntu .
$(DOCKER) run --rm -v $(DIST_DIR)/ubuntu18.04:/dist:Z "nvidia/nvidia-docker2/ubuntu:18.04-docker18.03.1"
17.12.1-ubuntu18.04:
$(DOCKER) build --build-arg VERSION_ID="18.04" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker17.12.1-1" \
--build-arg DOCKER_VERSION="docker.io (= 17.12.1-0ubuntu1)" \
--build-arg PKG_VERS="$(VERSION)+docker17.12.1" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/ubuntu:18.04-docker17.12.1" -f Dockerfile.ubuntu .
$(DOCKER) run --rm -v $(DIST_DIR)/ubuntu18.04:/dist:Z "nvidia/nvidia-docker2/ubuntu:18.04-docker17.12.1"
%-ubuntu16.04:
$(DOCKER) build --build-arg VERSION_ID="16.04" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker$*-1" \
--build-arg DOCKER_VERSION="docker-ce (= $*~ce-0~ubuntu) | docker-ee (= $*~ee-0~ubuntu)" \
--build-arg PKG_VERS="$(VERSION)+docker$*" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/ubuntu:16.04-docker$*" -f Dockerfile.ubuntu .
$(DOCKER) run --rm -v $(DIST_DIR)/ubuntu16.04:/dist:Z "nvidia/nvidia-docker2/ubuntu:16.04-docker$*"
17.03.2-ubuntu16.04:
$(DOCKER) build --build-arg VERSION_ID="16.04" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker17.03.2-1" \
--build-arg DOCKER_VERSION="docker-ce (= 17.03.2~ce-0~ubuntu-xenial) | docker-ee (= 17.03.2~ee-0~ubuntu-xenial)" \
--build-arg PKG_VERS="$(VERSION)+docker17.03.2" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/ubuntu:16.04-docker$*" -f Dockerfile.ubuntu .
$(DOCKER) run --rm -v $(DIST_DIR)/ubuntu16.04:/dist:Z "nvidia/nvidia-docker2/ubuntu:16.04-docker$*"
1.13.1-ubuntu16.04:
$(DOCKER) build --build-arg VERSION_ID="16.04" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker1.13.1-1" \
--build-arg DOCKER_VERSION="docker-engine (= 1.13.1-0~ubuntu-xenial) | docker.io (= 1.13.1-0ubuntu1~16.04.2)" \
--build-arg PKG_VERS="$(VERSION)+docker1.13.1" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/ubuntu:16.04-docker1.13.1" -f Dockerfile.ubuntu .
$(DOCKER) run --rm -v $(DIST_DIR)/ubuntu16.04:/dist:Z "nvidia/nvidia-docker2/ubuntu:16.04-docker1.13.1"
1.12.6-ubuntu16.04:
$(DOCKER) build --build-arg VERSION_ID="16.04" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker1.12.6-1" \
--build-arg DOCKER_VERSION="docker-engine (= 1.12.6-0~ubuntu-xenial) | docker.io (= 1.12.6-0ubuntu1~16.04.1)" \
--build-arg PKG_VERS="$(VERSION)+docker1.12.6" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/ubuntu:16.04-docker1.12.6" -f Dockerfile.ubuntu .
$(DOCKER) run --rm -v $(DIST_DIR)/ubuntu16.04:/dist:Z "nvidia/nvidia-docker2/ubuntu:16.04-docker1.12.6"
%-ubuntu14.04:
$(DOCKER) build --build-arg VERSION_ID="14.04" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker$*-1" \
--build-arg DOCKER_VERSION="docker-ce (= $*~ce-0~ubuntu) | docker-ee (= $*~ee-0~ubuntu)" \
--build-arg PKG_VERS="$(VERSION)+docker$*" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/ubuntu:14.04-docker$*" -f Dockerfile.ubuntu .
$(DOCKER) run --rm -v $(DIST_DIR)/ubuntu14.04:/dist:Z "nvidia/nvidia-docker2/ubuntu:14.04-docker$*"
%-debian9:
$(DOCKER) build --build-arg VERSION_ID="9" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker$*-1" \
--build-arg DOCKER_VERSION="docker-ce (= $*~ce-0~debian)" \
--build-arg PKG_VERS="$(VERSION)+docker$*" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/debian:9-docker$*" -f Dockerfile.debian .
$(DOCKER) run --rm -v $(DIST_DIR)/debian9:/dist:Z "nvidia/nvidia-docker2/debian:9-docker$*"
17.03.2-debian9:
$(DOCKER) build --build-arg VERSION_ID="9" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker17.03.2-1" \
--build-arg DOCKER_VERSION="docker-ce (= 17.03.2~ce-0~debian-stretch)" \
--build-arg PKG_VERS="$(VERSION)+docker17.03.2" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/debian:9-docker17.03.2" -f Dockerfile.debian .
$(DOCKER) run --rm -v $(DIST_DIR)/debian9:/dist:Z "nvidia/nvidia-docker2/debian:9-docker17.03.2"
%-debian8:
$(DOCKER) build --build-arg VERSION_ID="8" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)+docker$*-1" \
--build-arg DOCKER_VERSION="docker-ce (= $*~ce-0~debian)" \
--build-arg PKG_VERS="$(VERSION)+docker$*" \
--build-arg PKG_REV="$(PKG_REV)" \
-t "nvidia/nvidia-docker2/debian:8-docker$*" -f Dockerfile.debian .
$(DOCKER) run --rm -v $(DIST_DIR)/debian8:/dist:Z "nvidia/nvidia-docker2/debian:8-docker$*"
%.ce-centos7:
$(DOCKER) build --build-arg VERSION_ID="7" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)-1.docker$*" \
--build-arg DOCKER_VERSION="docker-ce = $*.ce" \
--build-arg PKG_VERS="$(VERSION)" \
--build-arg PKG_REV="$(PKG_REV).docker$*.ce" \
-t "nvidia/nvidia-docker2/centos:7-docker$*.ce" -f Dockerfile.centos .
$(DOCKER) run --rm -v $(DIST_DIR)/centos7:/dist:Z "nvidia/nvidia-docker2/centos:7-docker$*.ce"
%-centos7:
$(DOCKER) build --build-arg VERSION_ID="7" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)-1.docker$*" \
--build-arg DOCKER_VERSION="docker = 2:$*" \
--build-arg PKG_VERS="$(VERSION)" \
--build-arg PKG_REV="$(PKG_REV).docker$*" \
-t "nvidia/nvidia-docker2/centos:7-docker$*" -f Dockerfile.centos .
$(DOCKER) run --rm -v $(DIST_DIR)/centos7:/dist:Z "nvidia/nvidia-docker2/centos:7-docker$*"
%.ce-amzn2:
$(DOCKER) build --build-arg VERSION_ID="2" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)-1.docker$*.amzn2" \
--build-arg DOCKER_VERSION="docker = $*ce" \
--build-arg PKG_VERS="$(VERSION)" \
--build-arg PKG_REV="$(PKG_REV).docker$*.ce.amzn2" \
-t "nvidia/nvidia-docker2/amzn:2-docker$*" -f Dockerfile.amzn .
$(DOCKER) run --rm -v $(DIST_DIR)/amzn2:/dist:Z "nvidia/nvidia-docker2/amzn:2-docker$*"
%.ce-amzn1:
$(DOCKER) build --build-arg VERSION_ID="1" \
--build-arg RUNTIME_VERSION="$(RUNTIME_VERSION)-1.docker$*.amzn1" \
--build-arg DOCKER_VERSION="docker = $*ce" \
--build-arg PKG_VERS="$(VERSION)" \
--build-arg PKG_REV="$(PKG_REV).docker$*.ce.amzn1" \
-t "nvidia/nvidia-docker2/amzn:1-docker$*" -f Dockerfile.amzn .
$(DOCKER) run --rm -v $(DIST_DIR)/amzn1:/dist:Z "nvidia/nvidia-docker2/amzn:1-docker$*"