...
c. 上传你的key到公共服务器
$ gpg2 --keyserver pgpkeys.mitopenpgp.eduorg --send-keys <key id>
这个 <key id> 就是 ~/.gnupg/openpgp-revocs.d/下的一个.rev文件的文件名,打开可以看到以下信息
...
然后从iotdb源码的根目录下的target/checkout/将README.md,README_ZH.md和RELEASE_NOTES.md拷贝进来。
再从iotdb源码再从iotdb源码/targettarget/checkout/target/apache-iotdb-0.11.1-source-release.zip* (zip, zip.asc, zip.sha512三个文件)拷贝进来;
再从Iotdb源码/target/checkout/distribution/target/apache-iotdb-0.11.1-bin.zip* (zip, zip.asc, zip.sha512三个文件)拷贝进来;
(注:0.12版本的二进制文件更多12版本的二进制文件更多,源码包要注意checkout的路径,“target/checkout/target”)
然后用svn命令提交:
$ svn add 0.11.1
...
Panel |
---|
主题:[RESULT][VOTE] Release Apache IoTDB 0.9.0 Hi all, xxx nondonon-binding vote:
你的名字 |
...
docker push apache/iotdb:0.13.0-grafana-connector
发布 跨平台的docker镜像
以0.13.1为例,在 Docker 19.03+ 版本中可以使用 docker buildx build 命令使用 BuildKit 构建镜像。该命令支持 --platform 参数可以同时构建支持多种系统架构的 Docker 镜像。(例如linux/amd64,linux/arm64)
dockerfile如下:
只修改了第一行,将jdk 替换成了eclipse-temurin:11-jre-focal,因为这个JDK支持amd64、arm/v7、arm64/v8三种版本,并且是ubuntu-focal,可以正常使用apt-get
No Format |
---|
FROM --platform=$TARGETPLATFORM eclipse-temurin:11-jre-focal
RUN apt update \
# procps is for `free` command
&& apt install wget unzip lsof procps -y \
&& wget https://downloads.apache.org/iotdb/0.13.1/apache-iotdb-0.13.1-server-bin.zip \
# if you are in China, use the following URL
#&& wget https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.13.1/apache-iotdb-0.13.1-server-bin.zip \
&& unzip apache-iotdb-0.13.1-server-bin.zip \
&& rm apache-iotdb-0.13.1-server-bin.zip \
&& mv apache-iotdb-0.13.1-server-bin /iotdb \
&& apt remove wget unzip -y \
&& apt autoremove -y \
&& apt purge --auto-remove -y \
&& apt clean -y
# rpc port
EXPOSE 6667
# JMX port
EXPOSE 31999
# sync port
EXPOSE 5555
# monitor port
EXPOSE 8181
VOLUME /iotdb/data
VOLUME /iotdb/logs
ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
ENTRYPOINT ["/iotdb/sbin/start-server.sh"] |
安装buildx:
# 确定可以使用buildx,否则要升级docker
docker buildx version
# 指定buildx使用docker-container
docker buildx create --name mybuilder --driver docker-container
docker buildx use mybuilder
# 开启用于多平台镜像构建的镜像
docker run --rm --privileged tonistiigi/binfmt:latest --install all
构建并上传
## apache/iotdb:latest
docker buildx build --platform linux/amd64,linux/arm64/v8,linux/arm/v7 -t apache/iotdb:latest -f Dockerfile-0.13.1-node . --push
## apache/iotdb:0.13.1-node
docker buildx build --platform linux/amd64,linux/arm64/v8,linux/arm/v7 -t apache/iotdb:0.13.1-node -f Dockerfile-0.13.1-node . --push
发布 Go client (如果有需要发布)
本地clone go client 代码
git clone https://github.com/apache/iotdb-client-go
checkout 到相应的 rel/xx 分支,检查是否有遗漏的commit,如果有,可以从main分支cherry-pick过来。
打tag 并push到 github 仓库
git tag v0.xx.x
git push origin v0.xx.x
进入下面的链接,点 draft a new release,选刚才打的那个tag 之后 release 就行。
https://github.com/apache/iotdb-client-go/releases
That is all.