|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +# We use the cache_from feature introduced in file form version 3.4 (released 2017-11-01) |
| 19 | +version: "3.4" |
| 20 | + |
| 21 | +# For simplicity, only the centos7_cpu is commented. But the comments apply to |
| 22 | +# all other services as well. |
| 23 | +services: |
| 24 | + ################################################################################################### |
| 25 | + # Dockerfile.build.centos7 based images used for building on CentOS7. On |
| 26 | + # CentOS7, we respectively test the oldest supported toolchain and dependency |
| 27 | + # versions |
| 28 | + ################################################################################################### |
| 29 | + centos7_cpu: |
| 30 | + # The resulting image will be named build.centos7_cpu:latest and will be |
| 31 | + # pushed to the dockerhub user specified in the environment variable |
| 32 | + # ${DOCKER_CACHE_REGISTRY} (typicall "mxnetci") under this name |
| 33 | + image: ${DOCKER_CACHE_REGISTRY}/build.centos7_cpu:latest |
| 34 | + build: |
| 35 | + context: . |
| 36 | + dockerfile: Dockerfile.build.centos7 |
| 37 | + # Use "base" target declared in Dockerfile.build.centos7 as "build.centos7_cpu:latest" |
| 38 | + target: base |
| 39 | + args: |
| 40 | + # BASE_IMAGE is used to dynamically specify the FROM image in Dockerfile.build.centos7 |
| 41 | + BASE_IMAGE: centos:7 |
| 42 | + cache_from: |
| 43 | + - ${DOCKER_CACHE_REGISTRY}/build.centos7_cpu:latest |
| 44 | + centos7_gpu_cu101: |
| 45 | + image: ${DOCKER_CACHE_REGISTRY}/build.centos7_gpu_cu101:latest |
| 46 | + build: |
| 47 | + context: . |
| 48 | + dockerfile: Dockerfile.build.centos7 |
| 49 | + target: base |
| 50 | + args: |
| 51 | + BASE_IMAGE: nvidia/cuda:10.1-cudnn7-devel-centos7 |
| 52 | + cache_from: |
| 53 | + - ${DOCKER_CACHE_REGISTRY}/build.centos7_gpu_cu101:latest |
| 54 | + centos7_gpu_cu102: |
| 55 | + image: ${DOCKER_CACHE_REGISTRY}/build.centos7_gpu_cu102:latest |
| 56 | + build: |
| 57 | + context: . |
| 58 | + dockerfile: Dockerfile.build.centos7 |
| 59 | + target: base |
| 60 | + args: |
| 61 | + BASE_IMAGE: nvidia/cuda:10.2-cudnn7-devel-centos7 |
| 62 | + cache_from: |
| 63 | + - ${DOCKER_CACHE_REGISTRY}/build.centos7_gpu_cu102:latest |
| 64 | + centos7_gpu_cu110: |
| 65 | + image: ${DOCKER_CACHE_REGISTRY}/build.centos7_gpu_cu110:latest |
| 66 | + build: |
| 67 | + context: . |
| 68 | + dockerfile: Dockerfile.build.centos7 |
| 69 | + target: base |
| 70 | + args: |
| 71 | + BASE_IMAGE: nvidia/cuda:11.0-cudnn8-devel-centos7 |
| 72 | + cache_from: |
| 73 | + - ${DOCKER_CACHE_REGISTRY}/build.centos7_gpu_cu110:latest |
| 74 | + centos7_gpu_cu112: |
| 75 | + image: ${DOCKER_CACHE_REGISTRY}/build.centos7_gpu_cu112:latest |
| 76 | + build: |
| 77 | + context: . |
| 78 | + dockerfile: Dockerfile.build.centos7 |
| 79 | + target: base |
| 80 | + args: |
| 81 | + BASE_IMAGE: nvidia/cuda:11.2.0-cudnn8-devel-centos7 |
| 82 | + cache_from: |
| 83 | + - ${DOCKER_CACHE_REGISTRY}/build.centos7_gpu_cu112:latest |
| 84 | + ################################################################################################### |
| 85 | + # Dockerfile.build.ubuntu based images. On Ubuntu we test more recent |
| 86 | + # toolchain and dependency versions compared to CentOS7. We attempt to update |
| 87 | + # the Ubuntu base image every 6 months, following the Ubuntu release cycle, |
| 88 | + # and testing the dependencies in their version provided by the respective |
| 89 | + # Ubuntu release. |
| 90 | + ################################################################################################### |
| 91 | + ubuntu_cpu: |
| 92 | + image: ${DOCKER_CACHE_REGISTRY}/build.ubuntu_cpu:latest |
| 93 | + build: |
| 94 | + context: . |
| 95 | + dockerfile: Dockerfile.build.ubuntu |
| 96 | + target: base |
| 97 | + args: |
| 98 | + BASE_IMAGE: ubuntu:20.04 |
| 99 | + cache_from: |
| 100 | + - ${DOCKER_CACHE_REGISTRY}/build.ubuntu_cpu:latest |
| 101 | + ubuntu_tensorrt_cu111: |
| 102 | + image: ${DOCKER_CACHE_REGISTRY}/build.ubuntu_tensorrt_cu111:latest |
| 103 | + build: |
| 104 | + context: . |
| 105 | + dockerfile: Dockerfile.build.ubuntu |
| 106 | + target: gpu |
| 107 | + args: |
| 108 | + BASE_IMAGE: nvidia/cuda:11.1-cudnn8-devel-ubuntu18.04 |
| 109 | + cache_from: |
| 110 | + - ${DOCKER_CACHE_REGISTRY}/build.ubuntu_tensorrt_cu111:latest |
| 111 | + ubuntu_gpu_cu111: |
| 112 | + image: ${DOCKER_CACHE_REGISTRY}/build.ubuntu_gpu_cu111:latest |
| 113 | + build: |
| 114 | + context: . |
| 115 | + dockerfile: Dockerfile.build.ubuntu |
| 116 | + target: gpu |
| 117 | + args: |
| 118 | + BASE_IMAGE: nvidia/cuda:11.1-cudnn8-devel-ubuntu20.04 |
| 119 | + cache_from: |
| 120 | + - ${DOCKER_CACHE_REGISTRY}/build.ubuntu_gpu_cu111:latest |
| 121 | + ################################################################################################### |
| 122 | + # Dockerfile.build.android based images used for testing cross-compilation for plain ARM |
| 123 | + ################################################################################################### |
| 124 | + armv6: |
| 125 | + image: ${DOCKER_CACHE_REGISTRY}/build.armv6:latest |
| 126 | + build: |
| 127 | + context: . |
| 128 | + dockerfile: Dockerfile.build.arm |
| 129 | + target: armv6 |
| 130 | + cache_from: |
| 131 | + - ${DOCKER_CACHE_REGISTRY}/build.armv6:latest |
| 132 | + armv7: |
| 133 | + image: ${DOCKER_CACHE_REGISTRY}/build.armv7:latest |
| 134 | + build: |
| 135 | + context: . |
| 136 | + dockerfile: Dockerfile.build.arm |
| 137 | + target: armv7 |
| 138 | + cache_from: |
| 139 | + - ${DOCKER_CACHE_REGISTRY}/build.armv7:latest |
| 140 | + armv8: |
| 141 | + image: ${DOCKER_CACHE_REGISTRY}/build.armv8:latest |
| 142 | + build: |
| 143 | + context: . |
| 144 | + dockerfile: Dockerfile.build.arm |
| 145 | + target: armv8 |
| 146 | + cache_from: |
| 147 | + - ${DOCKER_CACHE_REGISTRY}/build.armv8:latest |
| 148 | + ################################################################################################### |
| 149 | + # Dockerfile.test.arm based images for testing ARM artefacts via QEMU |
| 150 | + ################################################################################################### |
| 151 | + test.armv7: |
| 152 | + image: ${DOCKER_CACHE_REGISTRY}/test.armv7:latest |
| 153 | + build: |
| 154 | + context: . |
| 155 | + dockerfile: Dockerfile.test.arm |
| 156 | + args: |
| 157 | + BASE_IMAGE: arm32v7/ubuntu:20.04 |
| 158 | + cache_from: |
| 159 | + - ${DOCKER_CACHE_REGISTRY}/test.armv7:latest |
| 160 | + test.armv8: |
| 161 | + image: ${DOCKER_CACHE_REGISTRY}/test.armv8:latest |
| 162 | + build: |
| 163 | + context: . |
| 164 | + dockerfile: Dockerfile.test.arm |
| 165 | + args: |
| 166 | + BASE_IMAGE: arm64v8/ubuntu:20.04 |
| 167 | + cache_from: |
| 168 | + - ${DOCKER_CACHE_REGISTRY}/test.armv8:latest |
| 169 | + ################################################################################################### |
| 170 | + # Dockerfile.build.android based images used for testing cross-compilation for Android |
| 171 | + ################################################################################################### |
| 172 | + android_armv7: |
| 173 | + image: ${DOCKER_CACHE_REGISTRY}/build.android_armv7:latest |
| 174 | + build: |
| 175 | + context: . |
| 176 | + dockerfile: Dockerfile.build.android |
| 177 | + target: armv7 |
| 178 | + cache_from: |
| 179 | + - ${DOCKER_CACHE_REGISTRY}/build.android_armv7:latest |
| 180 | + android_armv8: |
| 181 | + image: ${DOCKER_CACHE_REGISTRY}/build.android_armv8:latest |
| 182 | + build: |
| 183 | + context: . |
| 184 | + dockerfile: Dockerfile.build.android |
| 185 | + target: armv8 |
| 186 | + cache_from: |
| 187 | + - ${DOCKER_CACHE_REGISTRY}/build.android_armv8:latest |
| 188 | + ################################################################################################### |
| 189 | + # Dockerfile.publish.test based images used for testing binary artifacts on minimal systems. |
| 190 | + ################################################################################################### |
| 191 | + publish.test.centos7_cpu: |
| 192 | + image: ${DOCKER_CACHE_REGISTRY}/publish.test.centos7_cpu:latest |
| 193 | + build: |
| 194 | + context: . |
| 195 | + dockerfile: Dockerfile.publish.test.centos7 |
| 196 | + args: |
| 197 | + BASE_IMAGE: centos:7 |
| 198 | + cache_from: |
| 199 | + - ${DOCKER_CACHE_REGISTRY}/publish.test.centos7_cpu:latest |
| 200 | + publish.test.centos7_gpu: |
| 201 | + image: ${DOCKER_CACHE_REGISTRY}/publish.test.centos7_gpu:latest |
| 202 | + build: |
| 203 | + context: . |
| 204 | + dockerfile: Dockerfile.publish.test.centos7 |
| 205 | + args: |
| 206 | + BASE_IMAGE: nvidia/cuda:9.2-cudnn7-devel-centos7 |
| 207 | + cache_from: |
| 208 | + - ${DOCKER_CACHE_REGISTRY}/publish.test.centos7_gpu:latest |
| 209 | + ################################################################################################### |
| 210 | + # Miscellaneous containers |
| 211 | + ################################################################################################### |
| 212 | + jetson: |
| 213 | + image: ${DOCKER_CACHE_REGISTRY}/build.jetson:latest |
| 214 | + build: |
| 215 | + context: . |
| 216 | + dockerfile: Dockerfile.build.jetson |
| 217 | + cache_from: |
| 218 | + - ${DOCKER_CACHE_REGISTRY}/build.jetson:latest |
| 219 | + ubuntu_cpu_jekyll: |
| 220 | + image: ${DOCKER_CACHE_REGISTRY}/build.ubuntu_cpu_jekyll:latest |
| 221 | + build: |
| 222 | + context: . |
| 223 | + dockerfile: Dockerfile.build.ubuntu_cpu_jekyll |
| 224 | + cache_from: |
| 225 | + - ${DOCKER_CACHE_REGISTRY}/build.ubuntu_cpu_jekyll:latest |
0 commit comments