Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
fe88b1a7
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fe88b1a7
编写于
1月 20, 2021
作者:
H
Hui Li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-2774]<feature> tdengine docker image support muliti platform
上级
c20d5741
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
170 addition
and
15 deletion
+170
-15
packaging/docker/Dockerfile
packaging/docker/Dockerfile
+9
-7
packaging/docker/dockerManifest.sh
packaging/docker/dockerManifest.sh
+44
-0
packaging/docker/dockerbuild-aarch64.sh
packaging/docker/dockerbuild-aarch64.sh
+55
-4
packaging/docker/dockerbuild.sh
packaging/docker/dockerbuild.sh
+62
-4
未找到文件。
packaging/docker/Dockerfile
浏览文件 @
fe88b1a7
FROM
ubuntu:
20
.04
FROM
ubuntu:
18
.04
WORKDIR
/root
WORKDIR
/root
ARG
version
ARG
pkgFile
RUN
echo
$version
ARG
dirName
COPY
tdengine.tar.gz /root/
RUN
echo
${
pkgFile
}
RUN
tar
-zxf
tdengine.tar.gz
RUN
echo
${
dirName
}
WORKDIR
/root/TDengine-server-$version/
RUN
/bin/bash install.sh
-e
no
COPY
${pkgFile} /root/
RUN
tar
-zxf
${
pkgFile
}
WORKDIR
/root/${dirName}/
RUN
/bin/bash install.sh
-e
no
ENV
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib"
ENV
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib"
ENV
LANG=en_US.UTF-8
ENV
LANG=en_US.UTF-8
...
...
packaging/docker/dockerManifest.sh
0 → 100755
浏览文件 @
fe88b1a7
#!/bin/bash
set
-e
#set -x
# dockerbuild.sh
# -n [version number]
# -p [xxxx]
# set parameters by default value
verNumber
=
""
passWord
=
""
while
getopts
"hn:p:"
arg
do
case
$arg
in
n
)
#echo "verNumber=$OPTARG"
verNumber
=
$(
echo
$OPTARG
)
;;
p
)
#echo "passWord=$OPTARG"
passWord
=
$(
echo
$OPTARG
)
;;
h
)
echo
"Usage:
`
basename
$0
`
-n [version number] "
echo
" -p [password for docker hub] "
exit
0
;;
?
)
#unknow option
echo
"unkonw argument"
exit
1
;;
esac
done
echo
"verNumber=
${
verNumber
}
"
docker manifest create
-a
tdengine/tdengine:
${
verNumber
}
tdengine/tdengine-amd64:
${
verNumber
}
tdengine/tdengine-aarch64:
${
verNumber
}
tdengine/tdengine-aarch32:
${
verNumber
}
docker login
-u
tdengine
-p
${
passWord
}
#replace the docker registry username and password
docker manifest push tdengine/tdengine:
${
verNumber
}
# how set latest version ???
packaging/docker/dockerbuild-aarch64.sh
浏览文件 @
fe88b1a7
#!/bin/bash
#!/bin/bash
set
-x
#
docker build
--rm
-f
"Dockerfile"
-t
tdengine/tdengine-aarch64:
$1
"."
--build-arg
version
=
$1
docker login
-u
tdengine
-p
$2
#replace the docker registry username and password
set
-e
docker push tdengine/tdengine-aarch64:
$1
#set -x
# dockerbuild.sh
# -c [aarch32 | aarch64 | amd64 | x86 | mips64 ...]
# -n [version number]
# -p [password for docker hub]
# set parameters by default value
cpuType
=
aarch64
verNumber
=
""
passWord
=
""
while
getopts
"hc:n:p:f:"
arg
do
case
$arg
in
c
)
#echo "cpuType=$OPTARG"
cpuType
=
$(
echo
$OPTARG
)
;;
n
)
#echo "verNumber=$OPTARG"
verNumber
=
$(
echo
$OPTARG
)
;;
p
)
#echo "passWord=$OPTARG"
passWord
=
$(
echo
$OPTARG
)
;;
h
)
echo
"Usage:
`
basename
$0
`
-c [aarch32 | aarch64 | amd64 | x86 | mips64 ...] "
echo
" -n [version number] "
echo
" -p [password for docker hub] "
exit
0
;;
?
)
#unknow option
echo
"unkonw argument"
exit
1
;;
esac
done
pkgFile
=
TDengine-server-
${
verNumber
}
-Linux-
${
cpuType
}
.tar.gz
echo
"cpuType=
${
cpuType
}
verNumber=
${
verNumber
}
pkgFile=
${
pkgFile
}
"
scriptDir
=
`
pwd
`
pkgDir
=
$scriptDir
/../../release/
cp
-f
${
pkgDir
}
/
${
pkgFile
}
.
./dockerbuild.sh
-c
${
cpuType
}
-f
${
pkgFile
}
-n
${
verNumber
}
-p
${
passWord
}
rm
-f
${
pkgFile
}
packaging/docker/dockerbuild.sh
浏览文件 @
fe88b1a7
#!/bin/bash
#!/bin/bash
set
-x
set
-e
docker build
--rm
-f
"Dockerfile"
-t
tdengine/tdengine:
$1
"."
--build-arg
version
=
$1
#set -x
docker login
-u
tdengine
-p
$2
#replace the docker registry username and password
docker push tdengine/tdengine:
$1
# dockerbuild.sh
# -c [aarch32 | aarch64 | amd64 | x86 | mips64 ...]
# -f [pkg file]
# -n [version number]
# -p [password for docker hub]
# set parameters by default value
cpuType
=
amd64
verNumber
=
""
passWord
=
""
pkgFile
=
""
while
getopts
"hc:n:p:f:"
arg
do
case
$arg
in
c
)
#echo "cpuType=$OPTARG"
cpuType
=
$(
echo
$OPTARG
)
;;
n
)
#echo "verNumber=$OPTARG"
verNumber
=
$(
echo
$OPTARG
)
;;
p
)
#echo "passWord=$OPTARG"
passWord
=
$(
echo
$OPTARG
)
;;
f
)
#echo "pkgFile=$OPTARG"
pkgFile
=
$(
echo
$OPTARG
)
;;
h
)
echo
"Usage:
`
basename
$0
`
-c [aarch32 | aarch64 | amd64 | x86 | mips64 ...] "
echo
" -f [pkg file] "
echo
" -n [version number] "
echo
" -p [password for docker hub] "
exit
0
;;
?
)
#unknow option
echo
"unkonw argument"
exit
1
;;
esac
done
echo
"cpuType=
${
cpuType
}
verNumber=
${
verNumber
}
pkgFile=
${
pkgFile
}
"
echo
"
$(
pwd
)
"
echo
"====NOTES:
${
pkgFile
}
must be in the same directory as dockerbuild.sh===="
dirName
=
${
pkgFile
%-Linux*
}
#echo "dirName=${dirName}"
docker build
--rm
-f
"Dockerfile"
-t
tdengine/tdengine-
${
cpuType
}
:
${
verNumber
}
"."
--build-arg
pkgFile
=
${
pkgFile
}
--build-arg
dirName
=
${
dirName
}
docker login
-u
tdengine
-p
${
passWord
}
#replace the docker registry username and password
docker push tdengine/tdengine-
${
cpuType
}
:
${
verNumber
}
# set this version to latest version
docker tag tdengine/tdengine-
${
cpuType
}
:
${
verNumber
}
tdengine/tdengine-
${
cpuType
}
:latest
docker push tdengine/tdengine-
${
cpuType
}
:latest
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录