Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
iSulad
提交
a665b59d
I
iSulad
项目概览
openeuler
/
iSulad
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
iSulad
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a665b59d
编写于
6月 04, 2020
作者:
L
lifeng68
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Doc: fix wrong dependecens on ubuntu
Signed-off-by:
N
lifeng68
<
lifeng68@huawei.com
>
上级
d8b70e9c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
48 addition
and
39 deletion
+48
-39
CI/build.sh
CI/build.sh
+4
-0
CI/generate_gcov.sh
CI/generate_gcov.sh
+2
-2
docs/build_guide.md
docs/build_guide.md
+42
-37
未找到文件。
CI/build.sh
浏览文件 @
a665b59d
...
@@ -415,13 +415,17 @@ if [[ -e $CIDIR/${CONTAINER_NAME}.runflag ]]; then
...
@@ -415,13 +415,17 @@ if [[ -e $CIDIR/${CONTAINER_NAME}.runflag ]]; then
for
container
in
${
containers
[@]
}
for
container
in
${
containers
[@]
}
do
do
docker
rm
-f
$container
docker
rm
-f
$container
rm
-rf
/var/lib/isulad/
$container
done
done
rm
-rf
/var/lib/isulad/
${
CONTAINER_NAME
}
_cptemp
exit
0
;
exit
0
;
else
else
for
container
in
${
containers
[@]
}
for
container
in
${
containers
[@]
}
do
do
docker
rm
-f
$container
docker
rm
-f
$container
rm
-rf
/var/lib/isulad/
$container
done
done
rm
-rf
/var/lib/isulad/
${
CONTAINER_NAME
}
_cptemp
echo_error
"Test failed!"
echo_error
"Test failed!"
exit
-1
;
exit
-1
;
fi
fi
CI/generate_gcov.sh
浏览文件 @
a665b59d
...
@@ -13,8 +13,8 @@ echo "*****************Get iSulad GCOV data**************************"
...
@@ -13,8 +13,8 @@ echo "*****************Get iSulad GCOV data**************************"
cp
-r
~/build
$ISULAD_COPY_PATH
cp
-r
~/build
$ISULAD_COPY_PATH
cd
$ISULAD_COPY_PATH
/build/src/CMakeFiles
cd
$ISULAD_COPY_PATH
/build/src/CMakeFiles
lcov
-c
-o
isulad.info
-d
isulad.dir
lcov
-c
-o
isulad.info
-d
isulad.dir
lcov
-c
-o
isula.info
-d
isula.dir
/src
lcov
-c
-o
isula.info
-d
isula.dir
lcov
-c
-o
isulad-shim.info
-d
isulad-shim.dir
/src
lcov
-c
-o
isulad-shim.info
-d
isulad-shim.dir
lcov
-c
-o
libisula.info
-d
libisula.dir
lcov
-c
-o
libisula.info
-d
libisula.dir
# Remove std files
# Remove std files
...
...
docs/build_guide.md
浏览文件 @
a665b59d
...
@@ -13,37 +13,42 @@ $ sudo yum --enablerepo='*' install -y automake autoconf libtool cmake make libc
...
@@ -13,37 +13,42 @@ $ sudo yum --enablerepo='*' install -y automake autoconf libtool cmake make libc
### install basic dependencies based on Ubuntu distribution
### install basic dependencies based on Ubuntu distribution
```
sh
```
sh
$
sudo
apt
install
-y
libtool automake autoconf cmake make pkg-config libyajl-dev zlib1g-dev libselinux
libselinux-devel libseccomp
libseccomp-dev libcap-dev libsystemd-dev git libcurl4-gnutls-dev openssl libdevmapper-dev golang python3 libtar libtar-dev
$
sudo
apt
install
-y
libtool automake autoconf cmake make pkg-config libyajl-dev zlib1g-dev libselinux
-dev
libseccomp-dev libcap-dev libsystemd-dev git libcurl4-gnutls-dev openssl libdevmapper-dev golang python3 libtar libtar-dev
```
```
## Build and install other dependencies from source
## Build and install other dependencies from source
These dependencies may not be provided by your package manager. So you need to build them from source.
These dependencies may not be provided by your package manager. So you need to build them from source.
### set ldconfig and pkgconfig
```
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH
$ sudo -E echo "/usr/local/lib" >> /etc/ld.so.conf
```
### build and install protobuf
### build and install protobuf
```
```
$ git clone https://gitee.com/src-openeuler/protobuf.git
$ git clone https://gitee.com/src-openeuler/protobuf.git
$ cd protobuf
$ cd protobuf
$ tar -xzvf protobuf-all-3.9.0.tar.gz
$ tar -xzvf protobuf-all-3.9.0.tar.gz
$ cd protobuf-3.9.0
$ cd protobuf-3.9.0
$ sudo ./autogen.sh
$ sudo
-E
./autogen.sh
$ sudo ./configure
$ sudo
-E
./configure
$ sudo make -j $(nproc)
$ sudo
-E
make -j $(nproc)
$ sudo make install
$ sudo
-E
make install
$ sudo ldconfig
$ sudo
-E
ldconfig
```
```
### build and install c-ares
### build and install c-ares
```
```
$ sudo export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ git clone https://gitee.com/src-openeuler/c-ares.git
$ git clone https://gitee.com/src-openeuler/c-ares.git
$ cd c-ares
$ cd c-ares
$ tar -xzvf c-ares-1.15.0.tar.gz
$ tar -xzvf c-ares-1.15.0.tar.gz
$ cd c-ares-1.15.0
$ cd c-ares-1.15.0
$ sudo autoreconf -if
$ sudo
-E
autoreconf -if
$ sudo ./configure --enable-shared --disable-dependency-tracking
$ sudo
-E
./configure --enable-shared --disable-dependency-tracking
$ sudo make -j $(nproc)
$ sudo
-E
make -j $(nproc)
$ sudo make install
$ sudo
-E
make install
$ sudo ldconfig
$ sudo
-E
ldconfig
```
```
### build and install grpc
### build and install grpc
...
@@ -52,9 +57,9 @@ $ git clone https://gitee.com/src-openeuler/grpc.git
...
@@ -52,9 +57,9 @@ $ git clone https://gitee.com/src-openeuler/grpc.git
$ cd grpc
$ cd grpc
$ tar -xzvf grpc-1.22.0.tar.gz
$ tar -xzvf grpc-1.22.0.tar.gz
$ cd grpc-1.22.0
$ cd grpc-1.22.0
$ sudo make -j $(nproc)
$ sudo
-E
make -j $(nproc)
$ sudo make install
$ sudo
-E
make install
$ sudo ldconfig
$ sudo
-E
ldconfig
```
```
### build and install http-parser
### build and install http-parser
...
@@ -63,9 +68,9 @@ $ git clone https://gitee.com/src-openeuler/http-parser.git
...
@@ -63,9 +68,9 @@ $ git clone https://gitee.com/src-openeuler/http-parser.git
$ cd http-parser
$ cd http-parser
$ tar -xzvf http-parser-2.9.2.tar.gz
$ tar -xzvf http-parser-2.9.2.tar.gz
$ cd http-parser-2.9.2
$ cd http-parser-2.9.2
$ sudo make -j CFLAGS="-Wno-error"
$ sudo
-E
make -j CFLAGS="-Wno-error"
$ sudo make CFLAGS="-Wno-error" install
$ sudo
-E
make CFLAGS="-Wno-error" install
$ sudo ldconfig
$ sudo
-E
ldconfig
```
```
### build and install libwebsockets
### build and install libwebsockets
...
@@ -77,10 +82,10 @@ $ cd libwebsockets-2.4.2
...
@@ -77,10 +82,10 @@ $ cd libwebsockets-2.4.2
$ patch -p1 -F1 -s < ../libwebsockets-fix-coredump.patch
$ patch -p1 -F1 -s < ../libwebsockets-fix-coredump.patch
$ mkdir build
$ mkdir build
$ cd build
$ cd build
$ sudo cmake -DLWS_WITH_SSL=0 -DLWS_MAX_SMP=32 -DCMAKE_BUILD_TYPE=Debug ../
$ sudo
-E
cmake -DLWS_WITH_SSL=0 -DLWS_MAX_SMP=32 -DCMAKE_BUILD_TYPE=Debug ../
$ sudo make -j $(nproc)
$ sudo
-E
make -j $(nproc)
$ sudo make install
$ sudo
-E
make install
$ sudo ldconfig
$ sudo
-E
ldconfig
```
```
## Build and install specific versions dependencies from source
## Build and install specific versions dependencies from source
...
@@ -93,10 +98,10 @@ $ cd lxc
...
@@ -93,10 +98,10 @@ $ cd lxc
$ tar -zxf lxc-4.0.1.tar.gz
$ tar -zxf lxc-4.0.1.tar.gz
$ ./apply-patches
$ ./apply-patches
$ cd lxc-4.0.1
$ cd lxc-4.0.1
$ ./autogen.sh
$
sudo -E
./autogen.sh
$ ./configure
$
sudo -E
./configure
$ make -j
$
sudo -E
make -j
$ sudo make install
$ sudo
-E
make install
```
```
### build and install lcr
### build and install lcr
...
@@ -105,9 +110,9 @@ $ git clone https://gitee.com/openeuler/lcr.git
...
@@ -105,9 +110,9 @@ $ git clone https://gitee.com/openeuler/lcr.git
$ cd lcr
$ cd lcr
$ mkdir build
$ mkdir build
$ cd build
$ cd build
$ sudo cmake ..
$ sudo
-E
cmake ..
$ sudo make -j
$ sudo
-E
make -j
$ sudo make install
$ sudo
-E
make install
```
```
### build and install clibcni
### build and install clibcni
...
@@ -116,9 +121,9 @@ $ git clone https://gitee.com/openeuler/clibcni.git
...
@@ -116,9 +121,9 @@ $ git clone https://gitee.com/openeuler/clibcni.git
$ cd clibcni
$ cd clibcni
$ mkdir build
$ mkdir build
$ cd build
$ cd build
$ sudo cmake ..
$ sudo
-E
cmake ..
$ sudo make -j
$ sudo
-E
make -j
$ sudo make install
$ sudo
-E
make install
```
```
### build and install iSulad-img
### build and install iSulad-img
...
@@ -126,8 +131,8 @@ $ sudo make install
...
@@ -126,8 +131,8 @@ $ sudo make install
$ git clone https://gitee.com/openeuler/iSulad-img.git
$ git clone https://gitee.com/openeuler/iSulad-img.git
$ cd iSulad-img
$ cd iSulad-img
$ ./apply-patch
$ ./apply-patch
$ make
$
sudo -E
make
$ sudo make install
$ sudo
-E
make install
```
```
### build and install iSulad
### build and install iSulad
...
@@ -135,7 +140,7 @@ $ sudo make install
...
@@ -135,7 +140,7 @@ $ sudo make install
$
git clone https://gitee.com/openeuler/iSulad.git
$
git clone https://gitee.com/openeuler/iSulad.git
$
mkdir
build
$
mkdir
build
$
cd
build
$
cd
build
$
sudo
cmake ..
$
sudo
-E
cmake ..
$
sudo
make
$
sudo
-E
make
$
sudo
make
install
$
sudo
-E
make
install
```
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录