DOCKER.md 1.7 KB
Newer Older
J
Jiawei Wang 已提交
1 2
# Docker compilation environment preparation

J
Jiawei Wang 已提交
3 4
([简体中文](./DOCKER_CN.md)|English)

J
Jiawei Wang 已提交
5 6 7 8 9 10 11
## Environmental requirements

+ Docker is installed on the development machine.
+ Compiling the GPU version requires nvidia-docker.

## Dockerfile

J
Jiawei Wang 已提交
12
[CPU Version Dockerfile](../tools/Dockerfile)
J
Jiawei Wang 已提交
13

J
Jiawei Wang 已提交
14
[GPU Version Dockerfile](../tools/Dockerfile.gpu)
J
Jiawei Wang 已提交
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

## Instructions

### Building Docker Image

Create a new directory and copy the Dockerfile to this directory.

Run

```bash
docker build -t serving_compile:cpu .
```

Or

```bash
docker build -t serving_compile:cuda9 .
```

## Enter Docker Container

CPU Version please run

```bash
docker run -it serving_compile:cpu bash
```

GPU Version please run

```bash
docker run -it --runtime=nvidia -it serving_compile:cuda9 bash
```

##  List of supported environments compiled by Docker

The list of supported environments is as follows::

| System Environment Supported by CPU Docker Compiled Executables |
| -------------------------- |
| Centos6                    |
| Centos7                    |
| Ubuntu16.04                |
| Ubuntu18.04               |



| System Environment Supported by GPU Docker Compiled Executables |
| ---------------------------------- |
| Centos6_cuda9_cudnn7                       |
| Centos7_cuda9_cudnn7                  |
| Ubuntu16.04_cuda9_cudnn7                       |
| Ubuntu16.04_cuda10_cudnn7                  |



J
Jiawei Wang 已提交
70
**Remarks:**
J
Jiawei Wang 已提交
71 72
+ If you cannot find libcrypto.so.10 and libssl.so.10 when you execute the pre-compiled version, you can change /usr/lib64/libssl.so.10 and /usr/lib64/libcrypto.so in the Docker environment. 10 Copy to the directory where the executable is located.
+ CPU pre-compiled version can only be executed on CPU machines, GPU pre-compiled version can only be executed on GPU machines.