blob: dc15a83451879c05d3ca2b48de7973a17ffbcc4b (
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
|
# dockzen-launcher
> This is docker framework main manager which is installed into host-OS
## Build with rpmbuild
```
dockzen-launcher$ rpmbuild arm
dockzen-launcher$ rpmbuild amd64 (not completed)
```
## Build with gbs
`dockzen-launcher$ gbs build -A armv7l --include-all`
## Build in local PC (w/o install)
### for arm
`dockzen-launcher$ ./build.sh arm`
link static execution binary.
output files...
<pre>
build/arm/
├── dockzen-launcher
└── lib
├── libdockzen.a
└── pkgconfig
└── dockzen-launcher.pc
build/include/
└── dockzen
├── dockzen.h
└── dockzen_types.h
</pre>
as using arm-linux-gnueabi-gcc command, plese install this if not exist
`$ sudo apt-get install gcc-arm-linux-gnueabi`
### for amd64
`dockzen-launcher$ ./build.sh`
link dynamic execution binary.
output files...
<pre>
build/amd64/
├── dockzen-launcher
└── lib
├── libdockzen.a
└── pkgconfig
└── dockzen-launcher.pc
build/include/
└── dockzen
├── dockzen.h
└── dockzen_types.h
</pre>
You must install pre-defined curl library of Ver.7.54.1 in your PC.
Please install https://github.com/dockzen/curl
### for unit test
In case of arm,<br>
`dockzen-launcher$ ./build.sh -t arm`<br>
output files...
<pre>
build/arm
├── dockzen-launcher
├── gtest-dockzen_api
├── gtest-dockzen_launcher
└── lib
├── libdockzen.a
└── pkgconfig
└── dockzen-launcher.pc
</pre>
In case of amd64,<br>
`dockzen-launcher$ ./build.sh -t`<br>
output files...
<pre>
build/amd64
├── dockzen-launcher
├── gtest-dockzen_api
├── gtest-dockzen_launcher
└── lib
├── libdockzen.a
└── pkgconfig
└── dockzen-launcher.pc
</pre>
You must install pre-defined gtest library of latest version in your PC.<br>
Please install https://github.com/dockzen/googletest<br>
<br>
### Execution
1. copy data file
`sudo cp -rf data/config /etc/dockzen/`
sudo is needed in host PC
2. execute
`sudo build/dockzen-launcher`
sudo is needed in host PC as to access data file
3. unit test<br>
In case of arm, <br>
`build/arm/gtest-dockzen_launcher` <br>
`build/arm/gtest-dockzen_api` <br><br>
In case of amd64, <br>
`build/amd64/gtest-dockzen_launcher` <br>
`build/amd64/gtest-dockzen_api` <br>
|