summaryrefslogtreecommitdiff
path: root/README.md
blob: e1617b8aebf9bd033aa1520cf1a01e4152d3c501 (plain)
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
# build for Host PC (amd64)
```
docker-static$ ./build.sh
# WARNING! I don't seem to be running in a Docker container.
# The result of this command might be an incorrect build, and will not be
# officially supported.
#
# Try this instead: make all
#

---> Making bundle: binary-docker (in bundles/17.06.0-dev/binary-docker)
Building: bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev
Created binary: bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev

docker/
docker/docker-containerd-ctr
docker/docker
docker/docker-containerd-shim
docker/docker-proxy
docker/docker-containerd
docker/docker-runc
docker/dockerd


/docker-static$ file docker/docker
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
```

# cross build for Target (arm7)
```
$ ./build-arm.sh
# WARNING! I don't seem to be running in a Docker container.
# The result of this command might be an incorrect build, and will not be
# officially supported.
#
# Try this instead: make all
#

bundles/17.06.0-dev already exists. Removing.

---> Making bundle: binary-docker (in bundles/17.06.0-dev/binary-docker)
Building: bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev

Created binary: bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev

strip: Unable to recognise the format of the input file `docker/docker'

$ file bundles/17.06.0-dev/binary-docker/docker-17.06.0-dev
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
```

# build rpm for target (arm7)
```
$ ./rpmbuild.sh arm
-------------------------------------
Init-rpmbuild Env.
-------------------------------------
Delete existing rpmbuild folder
Create rpmbuild folder (/home/son/works/src/beluga/docker-engine/rpmbuild)
error: Architecture is not included: x86_64
-------------------------------------
Pre-requisition
-------------------------------------
/home/son/works/src/beluga/docker-engine
/home/son/works/src/beluga/docker-engine/rpmbuild
├── BUILD
├── BUILDROOT
├── RPMS
├── SOURCES
│   ├── docker-engine.manifest
│   ├── docker-engine.service
│   ├── docker-engine.socket
│   └── docker-engine.tar.gz
├── SPECS
│   └── docker-engine.spec
└── SRPMS

6 directories, 5 files
-------------------------------------
Build
-------------------------------------
Building target platforms: armv7l
Building for target armv7l
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XsKkMN

...

/home/son/works/src/beluga/docker-engine
/home/son/works/src/beluga/docker-engine/rpmbuild/RPMS
└── armv7l
    └── docker-engine-17.06.0-0.5.armv7l.rpm

1 directory, 1 file

... Remove temp working directory /tmp/tmp.A1KwVC6NT7
```