提交 9331c67c 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!427 Dockerfile: adapt with upstream software update

Merge pull request !427 from lifeng_isula/master
...@@ -24,15 +24,17 @@ ...@@ -24,15 +24,17 @@
FROM centos:7.6.1810 FROM centos:7.6.1810
MAINTAINER LiFeng <lifeng68@huawei.com> MAINTAINER LiFeng <lifeng68@huawei.com>
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf && \
echo "nameserver 8.8.4.4" >> /etc/resolv.conf && \
echo "search localdomain" >> /etc/resolv.conf
# Install dependency package # Install dependency package
RUN yum clean all && yum swap -y fakesystemd systemd && \ RUN yum clean all && yum makecache && yum install -y epel-release && yum swap -y fakesystemd systemd && \
yum install -y epel-release \
yum update -y && \ yum update -y && \
yum install -y automake \ yum install -y automake \
autoconf \ autoconf \
libtool \ libtool \
make \ make \
cmake \
which \ which \
gdb \ gdb \
strace \ strace \
...@@ -68,6 +70,10 @@ RUN yum clean all && yum swap -y fakesystemd systemd && \ ...@@ -68,6 +70,10 @@ RUN yum clean all && yum swap -y fakesystemd systemd && \
python \ python \
python-pip \ python-pip \
device-mapper-devel \ device-mapper-devel \
libarchive \
libarchive-devel \
libtar \
libtar-devel \
libcurl-devel \ libcurl-devel \
zlib-devel \ zlib-devel \
glibc-headers \ glibc-headers \
...@@ -87,8 +93,6 @@ RUN yum clean all && yum swap -y fakesystemd systemd && \ ...@@ -87,8 +93,6 @@ RUN yum clean all && yum swap -y fakesystemd systemd && \
valgrind \ valgrind \
e2fsprogs e2fsprogs
RUN pip install xlrd
RUN yum clean all && \ RUN yum clean all && \
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; \ (cd /lib/systemd/system/sysinit.target.wants/; for i in *; \
do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
...@@ -109,6 +113,17 @@ RUN echo "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" >> / ...@@ -109,6 +113,17 @@ RUN echo "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" >> /
# disalbe sslverify # disalbe sslverify
RUN git config --global http.sslverify false RUN git config --global http.sslverify false
# install cmake
RUN set -x && \
cd ~ && \
git clone https://gitee.com/src-openeuler/cmake.git && \
cd cmake && \
git checkout origin/openEuler-20.03-LTS && \
tar -xzvf cmake-3.12.1.tar.gz && \
cd cmake-3.12.1 && \
./bootstrap && make && make install && \
ldconfig
# Centos has no protobuf, protobuf-devel, grpc, grpc-devel, grpc-plugin # Centos has no protobuf, protobuf-devel, grpc, grpc-devel, grpc-plugin
# and we should install them manually. # and we should install them manually.
# install protobuf # install protobuf
...@@ -170,10 +185,12 @@ RUN export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH && \ ...@@ -170,10 +185,12 @@ RUN export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH && \
cd ~ && \ cd ~ && \
git clone https://gitee.com/src-openeuler/libevhtp.git && \ git clone https://gitee.com/src-openeuler/libevhtp.git && \
cd libevhtp && \ cd libevhtp && \
tar -xzvf libevhtp-1.2.16.tar.gz && \ tar -xzvf libevhtp-1.2.18.tar.gz && \
cd libevhtp-1.2.16 && \ cd libevhtp-1.2.18 && \
patch -p1 -F1 -s < ../0001-support-dynamic-threads.patch && \ patch -p1 -F1 -s < ../0001-decrease-numbers-of-fd-for-shared-pipe-mode.patch && \
patch -p1 -F1 -s < ../0002-close-openssl.patch && \ patch -p1 -F1 -s < ../0002-evhtp-enable-dynamic-thread-pool.patch && \
patch -p1 -F1 -s < ../0003-close-open-ssl.-we-do-NOT-use-it-in-lcrd.patch && \
patch -p1 -F1 -s < ../0004-Use-shared-library-instead-static-one.patch && \
rm -rf build && \ rm -rf build && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册