Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
pulsar
提交
4cf35167
pulsar
项目概览
apache
/
pulsar
通知
129
Star
40
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
pulsar
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4cf35167
编写于
8月 22, 2019
作者:
R
Rui Fu
提交者:
Sijie Guo
8月 22, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix docker image not have cpp client installed (#4986)
上级
e8b4eddf
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
34 addition
and
1 deletion
+34
-1
docker/pulsar/Dockerfile
docker/pulsar/Dockerfile
+5
-0
docker/pulsar/pom.xml
docker/pulsar/pom.xml
+28
-0
pulsar-client-cpp/pkg/deb/docker-build-deb.sh
pulsar-client-cpp/pkg/deb/docker-build-deb.sh
+1
-1
未找到文件。
docker/pulsar/Dockerfile
浏览文件 @
4cf35167
...
...
@@ -62,9 +62,14 @@ RUN pip install kazoo pyyaml
RUN
python3.5 get-pip.py
ADD
target/python-client/ /pulsar/pulsar-client
ADD
target/cpp-client/ /pulsar/cpp-client
RUN
/pulsar/bin/install-pulsar-client-27.sh
RUN
/pulsar/bin/install-pulsar-client-35.sh
RUN
echo
networkaddress.cache.ttl
=
1
>>
$JAVA_HOME
/jre/lib/security/java.security
RUN
apt-get update
\
&&
apt
install
-y
/pulsar/cpp-client/
*
.deb
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
WORKDIR
/pulsar
...
...
docker/pulsar/pom.xml
浏览文件 @
4cf35167
...
...
@@ -85,6 +85,18 @@
</arguments>
</configuration>
</execution>
<execution>
<id>
build-pulsar-cpp-client-deb
</id>
<phase>
compile
</phase>
<goals>
<goal>
exec
</goal>
</goals>
<configuration>
<skip>
${skipBuildCppClient}
</skip>
<workingDirectory>
${project.basedir}/target
</workingDirectory>
<executable>
${project.basedir}/../../pulsar-client-cpp/pkg/deb/docker-build-deb.sh
</executable>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
...
...
@@ -92,6 +104,7 @@
<artifactId>
maven-antrun-plugin
</artifactId>
<executions>
<execution>
<id>
copy-pulsar-clients-python
</id>
<phase>
compile
</phase>
<goals>
<goal>
run
</goal>
...
...
@@ -105,6 +118,21 @@
</tasks>
</configuration>
</execution>
<execution>
<id>
copy-pulsar-cpp-client
</id>
<phase>
compile
</phase>
<goals>
<goal>
run
</goal>
</goals>
<configuration>
<skip>
${skipCopyCppClient}
</skip>
<tasks>
<echo>
copy cpp client deb file
</echo>
<mkdir
dir=
"${basedir}/target/cpp-client"
/>
<copydir
src=
"${basedir}/../../pulsar-client-cpp/pkg/deb/BUILD/DEB"
dest=
"${basedir}/target/cpp-client"
/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
...
...
pulsar-client-cpp/pkg/deb/docker-build-deb.sh
浏览文件 @
4cf35167
...
...
@@ -24,5 +24,5 @@ ROOT_DIR=$(git rev-parse --show-toplevel)
docker pull apachepulsar/pulsar-build:debian-9
docker run
-i
t
-v
$ROOT_DIR
:/pulsar apachepulsar/pulsar-build:debian-9
\
docker run
-i
-v
$ROOT_DIR
:/pulsar apachepulsar/pulsar-build:debian-9
\
/pulsar/pulsar-client-cpp/pkg/deb/build-deb.sh
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录