fix compile error
[platform/upstream/docker-engine.git] / README.md
1 # build for Host PC (amd64)
2 ```
3 docker-static$ ./build.sh
4 # WARNING! I don't seem to be running in a Docker container.
5 # The result of this command might be an incorrect build, and will not be
6 # officially supported.
7 #
8 # Try this instead: make all
9 #
10
11 ---> Making bundle: binary-docker (in bundles/17.06.0-dev/binary-docker)
12 Building: bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev
13 Created binary: bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev
14
15 docker/
16 docker/docker-containerd-ctr
17 docker/docker
18 docker/docker-containerd-shim
19 docker/docker-proxy
20 docker/docker-containerd
21 docker/docker-runc
22 docker/dockerd
23
24
25 /docker-static$ file docker/docker
26 docker/docker: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=7232430f1b8490d29da63245ac68bf0ef4b02e25, stripped
27 ```
28
29 # cross build for Target (arm7)
30 ```
31 $ ./build-arm.sh
32 # WARNING! I don't seem to be running in a Docker container.
33 # The result of this command might be an incorrect build, and will not be
34 # officially supported.
35 #
36 # Try this instead: make all
37 #
38
39 bundles/17.06.0-dev already exists. Removing.
40
41 ---> Making bundle: binary-docker (in bundles/17.06.0-dev/binary-docker)
42 Building: bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev
43
44 Created binary: bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev
45
46 strip: Unable to recognise the format of the input file `docker/docker'
47
48 $ file bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev
49 bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=9fb34777bc176a9e7d3beea408c6ac9d16c3e206, not stripped
50 ```
51
52 # build rpm for target (arm7)
53 ```
54 $ ./rpmbuild.sh arm
55 -------------------------------------
56 Init-rpmbuild Env.
57 -------------------------------------
58 Delete existing rpmbuild folder
59 Create rpmbuild folder (/home/son/works/src/beluga/docker-engine/rpmbuild)
60 error: Architecture is not included: x86_64
61 -------------------------------------
62 Pre-requisition
63 -------------------------------------
64 /home/son/works/src/beluga/docker-engine
65 /home/son/works/src/beluga/docker-engine/rpmbuild
66 ├── BUILD
67 ├── BUILDROOT
68 ├── RPMS
69 ├── SOURCES
70 │   ├── docker-engine.manifest
71 │   ├── docker-engine.service
72 │   ├── docker-engine.socket
73 │   └── docker-engine.tar.gz
74 ├── SPECS
75 │   └── docker-engine.spec
76 └── SRPMS
77
78 6 directories, 5 files
79 -------------------------------------
80 Build
81 -------------------------------------
82 Building target platforms: armv7l
83 Building for target armv7l
84 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XsKkMN
85
86 ...
87
88 /home/son/works/src/beluga/docker-engine
89 /home/son/works/src/beluga/docker-engine/rpmbuild/RPMS
90 └── armv7l
91     └── docker-engine-17.06.0-0.5.armv7l.rpm
92
93 1 directory, 1 file
94
95 ... Remove temp working directory /tmp/tmp.A1KwVC6NT7
96 ```