Skip to content

Commit

Permalink
增加snapshotserver包
Browse files Browse the repository at this point in the history
Change-Id: I99fba5ee4ce8ad6db672a6a81c091c6956931663
  • Loading branch information
hzzhaojianming committed Aug 30, 2019
1 parent 08b1fac commit 30745e2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions curve-snapshotcloneserver/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Package: curve-snapshotcloneserver
Version: 1.0
Section:
Priority: optional
Depends: libuuid1,libunwind8,libmysqlcppconn7v5
Suggests:
Architecture:amd64
Installed-Size:
Maintainer: curve-dev
Provides:
Description: curve snapshot clone server

19 changes: 19 additions & 0 deletions mk-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ if [ $? -ne 0 ]
then
exit
fi
cp -r curve-snapshotcloneserver build/
if [ $? -ne 0 ]
then
exit
fi

mkdir -p build/curve-mds/usr/bin
if [ $? -ne 0 ]
then
Expand Down Expand Up @@ -247,6 +253,17 @@ if [ $? -ne 0 ]
then
exit
fi
mkdir -p build/curve-snapshotcloneserver/usr/bin
if [ $? -ne 0 ]
then
exit
fi
cp ./bazel-bin/src/snapshotcloneserver/snapshotcloneserver \
build/curve-snapshotcloneserver/usr/bin/curve-snapshotcloneserver
if [ $? -ne 0 ]
then
exit
fi

#step4 获取git提交版本信息,记录到debian包的配置文件
commit_id=`git show --abbrev-commit HEAD|head -n 1|awk '{print $2}'`
Expand All @@ -262,13 +279,15 @@ sed -i "s/${version}/${version}+${commit_id}${debug}/g" build/curve-sdk/DEBIAN/c
sed -i "s/${version}/${version}+${commit_id}${debug}/g" build/curve-chunkserver/DEBIAN/control
sed -i "s/${version}/${version}+${commit_id}${debug}/g" build/curve-tools/DEBIAN/control
sed -i "s/${version}/${version}+${commit_id}${debug}/g" build/curve-monitor/DEBIAN/control
sed -i "s/${version}/${version}+${commit_id}${debug}/g" build/curve-snapshotcloneserver/DEBIAN/control

#step5 打包debian包
dpkg-deb -b build/curve-mds .
dpkg-deb -b build/curve-sdk .
dpkg-deb -b build/curve-chunkserver .
dpkg-deb -b build/curve-tools .
dpkg-deb -b build/curve-monitor .
dpkg-deb -b build/curve-snapshotcloneserver .
#aws-c-common(commit=0302570a3cbabd98293ee03971e0867f28355086)
#aws-checksums(commit=78be31b81a2b0445597e60ecb2412bc44e762a99)
#aws-c-event-stream(commit=ad9a8b2a42d6c6ef07ccf251b5038b89487eacb3)
Expand Down

0 comments on commit 30745e2

Please sign in to comment.