Skip to content

Commit

Permalink
add package nginx
Browse files Browse the repository at this point in the history
Change-Id: I78b1b509b1a7dc217fe300fe032ace19802abf15
  • Loading branch information
xu-chaojie committed Apr 16, 2020
1 parent 781b4dd commit 8b6796a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
10 changes: 10 additions & 0 deletions curve-nginx/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Package: curve-snapshotcloneserver-nginx
Section:
Priority: optional
Depends:
Suggests:
Architecture:amd64
Installed-Size:
Maintainer: curve-dev
Provides:
Description: nginx for snapshotcloneserver
42 changes: 42 additions & 0 deletions mk-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ if [ $? -ne 0 ]
then
exit
fi
cp -r curve-nginx build/
if [ $? -ne 0 ]
then
exit
fi

mkdir -p build/curve-mds/usr/bin
if [ $? -ne 0 ]
Expand Down Expand Up @@ -305,6 +310,41 @@ then
exit
fi

mkdir -p build/curve-nginx/etc/curve/nginx/app/etc
if [ $? -ne 0 ]
then
exit
fi
cp -r ./curve-snapshotcloneserver-nginx/app/lib \
build/curve-nginx/etc/curve/nginx/app
if [ $? -ne 0 ]
then
exit
fi
cp -r ./curve-snapshotcloneserver-nginx/app/src \
build/curve-nginx/etc/curve/nginx/app
if [ $? -ne 0 ]
then
exit
fi
mkdir -p build/curve-nginx/etc/curve/nginx/conf
if [ $? -ne 0 ]
then
exit
fi
cp ./curve-snapshotcloneserver-nginx/conf/mime.types \
build/curve-nginx/etc/curve/nginx/conf/
if [ $? -ne 0 ]
then
exit
fi
cp -r ./curve-snapshotcloneserver-nginx/docker \
build/curve-nginx/etc/curve/nginx/
if [ $? -ne 0 ]
then
exit
fi

#step4 获取git提交版本信息,记录到debian包的配置文件
commit_id=`git show --abbrev-commit HEAD|head -n 1|awk '{print $2}'`
if [ "$1" = "debug" ]
Expand All @@ -320,6 +360,7 @@ echo ${version} >> build/curve-chunkserver/DEBIAN/control
echo ${version} >> build/curve-tools/DEBIAN/control
echo ${version} >> build/curve-monitor/DEBIAN/control
echo ${version} >> build/curve-snapshotcloneserver/DEBIAN/control
echo ${version} >> build/curve-nginx/DEBIAN/control

#step5 打包debian包
dpkg-deb -b build/curve-mds .
Expand All @@ -328,6 +369,7 @@ dpkg-deb -b build/curve-chunkserver .
dpkg-deb -b build/curve-tools .
dpkg-deb -b build/curve-monitor .
dpkg-deb -b build/curve-snapshotcloneserver .
dpkg-deb -b build/curve-nginx .
#aws-c-common(commit=0302570a3cbabd98293ee03971e0867f28355086)
#aws-checksums(commit=78be31b81a2b0445597e60ecb2412bc44e762a99)
#aws-c-event-stream(commit=ad9a8b2a42d6c6ef07ccf251b5038b89487eacb3)
Expand Down

0 comments on commit 8b6796a

Please sign in to comment.