Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_22812535
incubator-superset
提交
53757451
I
incubator-superset
项目概览
qq_22812535
/
incubator-superset
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-superset
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
53757451
编写于
8月 12, 2019
作者:
M
Maxime Beauchemin
提交者:
GitHub
8月 12, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve release instructions (#8016)
上级
f039e17c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
52 addition
and
62 deletion
+52
-62
RELEASING/README.md
RELEASING/README.md
+52
-62
未找到文件。
RELEASING/README.md
浏览文件 @
53757451
...
@@ -16,57 +16,6 @@ KIND, either express or implied. See the License for the
...
@@ -16,57 +16,6 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
specific language governing permissions and limitations
under the License.
under the License.
-->
-->
# Apache Releases
To make a fresh tarball of a git reference on apache/incubator-superset
(push your tag first!)
```
bash
docker build
-t
make_tarball
-f
Dockerfile.make_tarball
.
--build-arg
VERSION
=
0.33.0rc1
docker run make_tarball
-f
Dockerfile.make_tarball
--env
VERSION
=
0.33.0rc1
```
To make a working build given a tarball
```
bash
# Building a docker from a tarball
VERSION
=
0.33.0rc2
&&
\
docker build
-t
apache-superset:
$VERSION
-f
Dockerfile.from_tarball
.
--build-arg
VERSION
=
$VERSION
# testing the resulting docker
docker run
-p
5001:8088 apache-superset:0.33.0rc2
# you should be able to access localhost:5001 on your browser
# login using admin/admin
```
## Refresh documentation website
Every once in a while we want to compile the documentation and publish it.
Here's how to do it.
```
bash
# install doc dependencies
pip
install
-r
docs/requirements.txt
# build the docs
python setup.py build_sphinx
# copy html files to temp folder
cp
-r
docs/_build/html/ /tmp/tmp_superset_docs/
# clone the docs repo
cd
~/
git clone https://git-wip-us.apache.org/repos/asf/incubator-superset-site.git
# copy
cp
-r
/tmp/tmp_superset_docs/ ~/incubator-superset-site.git/
# commit and push to `asf-site` branch
cd
~/incubator-superset-site.git/
git checkout asf-site
git add
.
git commit
-a
-m
"New doc version"
git push origin master
```
# Apache Releases
# Apache Releases
...
@@ -81,20 +30,20 @@ need to be done at every release.
...
@@ -81,20 +30,20 @@ need to be done at every release.
```
bash
```
bash
# Create PGP Key, and use your @apache.org email address
# Create PGP Key, and use your @apache.org email address
gpg
--gen-key
gpg
--gen-key
# Checkout ASF dist repo
# Checkout ASF dist repo
svn checkout https://dist.apache.org/repos/dist/dev/incubator/superset/ ~/svn/superset_dev
svn checkout https://dist.apache.org/repos/dist/dev/incubator/superset/ ~/svn/superset_dev
svn checkout https://dist.apache.org/repos/dist/release/incubator/superset/ ~/svn/superset
svn checkout https://dist.apache.org/repos/dist/release/incubator/superset/ ~/svn/superset
cd
~/svn/superset
cd
~/svn/superset
# Add your GPG pub key to KEYS file. Replace "Maxime Beauchemin" with your name
# Add your GPG pub key to KEYS file. Replace "Maxime Beauchemin" with your name
export
FULLNAME
=
"Maxime Beauchemin"
export
FULLNAME
=
"Maxime Beauchemin"
(
gpg
--list-sigs
$FULLNAME
&&
gpg
--armor
--export
$FULLNAME
)
>>
KEYS
(
gpg
--list-sigs
$FULLNAME
&&
gpg
--armor
--export
$FULLNAME
)
>>
KEYS
# Commit the changes
# Commit the changes
svn commit
-m
"Add PGP keys of new Superset committer"
svn commit
-m
"Add PGP keys of new Superset committer"
```
```
...
@@ -107,7 +56,7 @@ Now let's craft a source release
...
@@ -107,7 +56,7 @@ Now let's craft a source release
# Setting a VERSION var will be useful
# Setting a VERSION var will be useful
export
VERSION
=
0.31.0rc18
export
VERSION
=
0.31.0rc18
export
RELEASE
=
apache-superset-incubating-
${
VERSION
}
export
RELEASE
=
apache-superset-incubating-
${
VERSION
}
export
RELEASE_TARBAL
=
${
RELEASE
}
-source
.tar.gz
export
RELEASE_TARBAL
L
=
${
RELEASE
}
-source
.tar.gz
# Let's create a git tag
# Let's create a git tag
git tag
-f
${
VERSION
}
git tag
-f
${
VERSION
}
...
@@ -122,10 +71,10 @@ Now let's craft a source release
...
@@ -122,10 +71,10 @@ Now let's craft a source release
mkdir
-p
~/svn/superset_dev/
${
VERSION
}
/
mkdir
-p
~/svn/superset_dev/
${
VERSION
}
/
git archive
\
git archive
\
--format
=
tar.gz
${
VERSION
}
\
--format
=
tar.gz
${
VERSION
}
\
--prefix
=
${
RELEASE
}
/
\
--prefix
=
"
${
RELEASE
}
/"
\
-o
~/svn/superset_dev/
${
VERSION
}
/
${
RELEASE_TARBALL
}
-o
~/svn/superset_dev/
${
VERSION
}
/
${
RELEASE_TARBALL
}
cd
~/svn/superset_dev/
cd
~/svn/superset_dev/
${
VERSION
}
/
scripts/sign.sh
${
RELEASE
}
-source
.tar.gz
scripts/sign.sh
${
RELEASE
}
-source
.tar.gz
```
```
...
@@ -134,9 +83,6 @@ Now let's craft a source release
...
@@ -134,9 +83,6 @@ Now let's craft a source release
Now let's ship this RC into svn's dev folder
Now let's ship this RC into svn's dev folder
```
bash
```
bash
# cp or mv the files over to the svn repo
mkdir
~/svn/superset_dev/
${
VERSION
}
/
cp
${
RELEASE_TARBALL
}
~/svn/superset_dev/
${
VERSION
}
/
cd
~/svn/superset_dev/
cd
~/svn/superset_dev/
svn add
${
VERSION
}
svn add
${
VERSION
}
svn commit
svn commit
...
@@ -161,3 +107,47 @@ folder.
...
@@ -161,3 +107,47 @@ folder.
Now you can announce the release on the mailing list, make sure to use the
Now you can announce the release on the mailing list, make sure to use the
proper template
proper template
## Build from source tarball
To make a working build given a tarball
```
bash
# Building a docker from a tarball
VERSION
=
0.33.0rc2
&&
\
docker build
-t
apache-superset:
$VERSION
-f
Dockerfile.from_tarball
.
--build-arg
VERSION
=
$VERSION
# testing the resulting docker
docker run
-p
5001:8088 apache-superset:
$VERSION
# you should be able to access localhost:5001 on your browser
# login using admin/admin
```
# Refresh documentation website
Every once in a while we want to compile the documentation and publish it.
Here's how to do it.
```
bash
# install doc dependencies
pip
install
-r
docs/requirements.txt
# build the docs
python setup.py build_sphinx
# copy html files to temp folder
cp
-r
docs/_build/html/ /tmp/tmp_superset_docs/
# clone the docs repo
cd
~/
git clone https://git-wip-us.apache.org/repos/asf/incubator-superset-site.git
# copy
cp
-r
/tmp/tmp_superset_docs/ ~/incubator-superset-site.git/
# commit and push to `asf-site` branch
cd
~/incubator-superset-site.git/
git checkout asf-site
git add
.
git commit
-a
-m
"New doc version"
git push origin master
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录