Makefile 5.2 KB
Newer Older
F
Felix Abecassis 已提交
1 2 3 4
# Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.

DOCKER ?= docker

F
Felix Abecassis 已提交
5
VERSION := 1.1.0
F
Felix Abecassis 已提交
6 7 8 9 10 11 12
PKG_REV := 1

DIST_DIR  := $(CURDIR)/dist

.NOTPARALLEL:
.PHONY: all

F
Felix Abecassis 已提交
13
all: xenial centos7 stretch
F
Felix Abecassis 已提交
14

F
Felix Abecassis 已提交
15
xenial: 17.09.0-xenial 17.06.2-xenial 17.03.2-xenial 1.13.1-xenial 1.12.6-xenial
F
Felix Abecassis 已提交
16

F
Felix Abecassis 已提交
17
centos7: 17.09.0-centos7 17.06.2-centos7 17.03.2-centos7 1.12.6-centos7
F
Felix Abecassis 已提交
18

F
Felix Abecassis 已提交
19 20
stretch: 17.09.0-stretch 17.06.2-stretch 17.03.2-stretch

F
Felix Abecassis 已提交
21 22 23 24 25 26
17.09.0-xenial:
	$(DOCKER) build --build-arg RUNC_COMMIT="3f2f8b84a77f73d38244dd690525642a72156c64" \
                        --build-arg PKG_VERS="$(VERSION)+docker17.09.0" \
                        --build-arg PKG_REV="$(PKG_REV)" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.xenial .
	$(DOCKER) run --rm -v $(DIST_DIR)/xenial:/dist:Z nvidia-container-runtime:$@
F
Felix Abecassis 已提交
27 28 29 30 31 32 33

17.06.2-xenial:
	$(DOCKER) build --build-arg RUNC_COMMIT="810190ceaa507aa2727d7ae6f4790c76ec150bd2" \
                        --build-arg PKG_VERS="$(VERSION)+docker17.06.2" \
                        --build-arg PKG_REV="$(PKG_REV)" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.xenial .
	$(DOCKER) run --rm -v $(DIST_DIR)/xenial:/dist:Z nvidia-container-runtime:$@
F
Felix Abecassis 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

17.03.2-xenial:
	$(DOCKER) build --build-arg RUNC_COMMIT="54296cf40ad8143b62dbcaa1d90e520a2136ddfe" \
                        --build-arg PKG_VERS="$(VERSION)+docker17.03.2" \
                        --build-arg PKG_REV="$(PKG_REV)" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.xenial .
	$(DOCKER) run --rm -v $(DIST_DIR)/xenial:/dist:Z nvidia-container-runtime:$@

1.13.1-xenial:
	$(DOCKER) build --build-arg RUNC_COMMIT="9df8b306d01f59d3a8029be411de015b7304dd8f" \
                        --build-arg PKG_VERS="$(VERSION)+docker1.13.1" \
                        --build-arg PKG_REV="$(PKG_REV)" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.xenial .
	$(DOCKER) run --rm -v $(DIST_DIR)/xenial:/dist:Z nvidia-container-runtime:$@

1.12.6-xenial:
	$(DOCKER) build --build-arg RUNC_COMMIT="50a19c6ff828c58e5dab13830bd3dacde268afe5" \
                        --build-arg PKG_VERS="$(VERSION)+docker1.12.6" \
                        --build-arg PKG_REV="$(PKG_REV)" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.xenial .
	$(DOCKER) run --rm -v $(DIST_DIR)/xenial:/dist:Z nvidia-container-runtime:$@

F
Felix Abecassis 已提交
56 57 58 59 60 61 62 63
17.09.0-centos7:
	$(DOCKER) build --build-arg PKG_ARCH="x86_64" \
                        --build-arg RUNC_COMMIT="3f2f8b84a77f73d38244dd690525642a72156c64" \
                        --build-arg PKG_VERS="$(VERSION)" \
                        --build-arg PKG_REV="$(PKG_REV).docker17.09.0" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.centos7 .
	$(DOCKER) run --rm -v $(DIST_DIR)/centos7:/dist:Z nvidia-container-runtime:$@

F
Felix Abecassis 已提交
64 65 66 67
17.06.2-centos7:
	$(DOCKER) build --build-arg PKG_ARCH="x86_64" \
                        --build-arg RUNC_COMMIT="810190ceaa507aa2727d7ae6f4790c76ec150bd2" \
                        --build-arg PKG_VERS="$(VERSION)" \
68
                        --build-arg PKG_REV="$(PKG_REV).docker17.06.2" \
F
Felix Abecassis 已提交
69
                        -t nvidia-container-runtime:$@ -f Dockerfile.centos7 .
F
Felix Abecassis 已提交
70 71 72 73 74 75
	$(DOCKER) run --rm -v $(DIST_DIR)/centos7:/dist:Z nvidia-container-runtime:$@

17.03.2-centos7:
	$(DOCKER) build --build-arg PKG_ARCH="x86_64" \
                        --build-arg RUNC_COMMIT="54296cf40ad8143b62dbcaa1d90e520a2136ddfe" \
                        --build-arg PKG_VERS="$(VERSION)" \
76
                        --build-arg PKG_REV="$(PKG_REV).docker17.03.2" \
F
Felix Abecassis 已提交
77 78
                        -t nvidia-container-runtime:$@ -f Dockerfile.centos7 .
	$(DOCKER) run --rm -v $(DIST_DIR)/centos7:/dist:Z nvidia-container-runtime:$@
79 80 81 82 83 84 85 86

1.12.6-centos7:
	$(DOCKER) build --build-arg PKG_ARCH="x86_64" \
                        --build-arg RUNC_COMMIT="50a19c6ff828c58e5dab13830bd3dacde268afe5" \
                        --build-arg PKG_VERS="$(VERSION)" \
                        --build-arg PKG_REV="$(PKG_REV).docker1.12.6" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.centos7 .
	$(DOCKER) run --rm -v $(DIST_DIR)/centos7:/dist:Z nvidia-container-runtime:$@
F
Felix Abecassis 已提交
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107

17.09.0-stretch:
	$(DOCKER) build --build-arg RUNC_COMMIT="3f2f8b84a77f73d38244dd690525642a72156c64" \
                        --build-arg PKG_VERS="$(VERSION)+docker17.09.0" \
                        --build-arg PKG_REV="$(PKG_REV)" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.stretch .
	$(DOCKER) run --rm -v $(DIST_DIR)/stretch:/dist:Z nvidia-container-runtime:$@

17.06.2-stretch:
	$(DOCKER) build --build-arg RUNC_COMMIT="810190ceaa507aa2727d7ae6f4790c76ec150bd2" \
                        --build-arg PKG_VERS="$(VERSION)+docker17.06.2" \
                        --build-arg PKG_REV="$(PKG_REV)" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.stretch .
	$(DOCKER) run --rm -v $(DIST_DIR)/stretch:/dist:Z nvidia-container-runtime:$@

17.03.2-stretch:
	$(DOCKER) build --build-arg RUNC_COMMIT="54296cf40ad8143b62dbcaa1d90e520a2136ddfe" \
                        --build-arg PKG_VERS="$(VERSION)+docker17.03.2" \
                        --build-arg PKG_REV="$(PKG_REV)" \
                        -t nvidia-container-runtime:$@ -f Dockerfile.stretch .
	$(DOCKER) run --rm -v $(DIST_DIR)/stretch:/dist:Z nvidia-container-runtime:$@