bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject [bookkeeper] branch master updated: ISSUE #336: add DC/OS package update and instructions
Date Tue, 13 Mar 2018 23:07:39 GMT
This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new e20bb40  ISSUE #336: add DC/OS package update and instructions
e20bb40 is described below

commit e20bb40ddff4c5bd033625dc82788b545f8d66ee
Author: Jia Zhai <zhaijia@apache.org>
AuthorDate: Tue Mar 13 16:07:32 2018 -0700

    ISSUE #336: add DC/OS package update and instructions
    
    Descriptions of the changes in this PR:
    
    Provide instructions of updating DCOS package by using latest docker image when do new
release.
    
    Master Issue: #336
    
    Author: Jia Zhai <zhaijia@apache.org>
    
    Reviewers: Sijie Guo <sijie@apache.org>
    
    This closes #1247 from jiazhai/issue_336, closes #336
---
 site/community/release_guide.md | 65 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/site/community/release_guide.md b/site/community/release_guide.md
index cd8fff1..4f5c21d 100644
--- a/site/community/release_guide.md
+++ b/site/community/release_guide.md
@@ -529,6 +529,71 @@ For example, if 4.6.1 is a newer release, we need to remove releases
older than
 
 4. Verify the [docker hub](https://hub.docker.com/r/apache/bookkeeper/) to see if a new build
for the given tag is build.
 
+### Update DC/OS BookKeeper package
+
+Once we have new version of BookKeeper docker image available at [docker hub](https://hub.docker.com/r/apache/bookkeeper/),
We could update DC/OS BookKeeper package in [mesosphere universe](https://github.com/mesosphere/universe).
A new pull request is needed in it. 
+
+It is easy if only version need be bump.
+
+1. Clone repo [mesosphere universe](https://github.com/mesosphere/universe).
+
+    ```shell
+    $ git clone https://github.com/mesosphere/universe
+    ```
+
+2. cd into the repo, Checkout a branch for the changes.
+
+    ```shell
+    $ cd universe
+    $ git checkout -b bookkeeper_new_version
+    ```
+
+3. Make a copy of latest code of BookKeeper package.
+
+    ```shell
+    $ cp -rf repo/packages/B/bookkeeper/1 repo/packages/B/bookkeeper/2
+    $ git add repo/packages/B/bookkeeper/2
+    $ git commit -m "copy old version"
+    ```
+
+4. Bump the version of BookKeeper docker image in file [resource.json](https://github.com/mesosphere/universe/blob/version-3.x/repo/packages/B/bookkeeper/1/resource.json#L5)
and [package.json](https://github.com/mesosphere/universe/blob/version-3.x/repo/packages/B/bookkeeper/1/package.json#L4).
+
+    ```
+    diff --git repo/packages/B/bookkeeper/2/package.json repo/packages/B/bookkeeper/2/package.json
+    index 07199d56..75f4aa81 100644
+    --- repo/packages/B/bookkeeper/2/package.json
+    +++ repo/packages/B/bookkeeper/2/package.json
+    @@ -1,7 +1,7 @@
+     {
+       "packagingVersion": "3.0",
+       "name": "bookkeeper",
+    -  "version": "4.5.1",
+    +  "version": "4.7.0",
+       "scm": "https://github.com/apache/bookkeeper",
+       "maintainer": "zhaijia@apache.org",
+       "description": "BookKeeper is A scalable, fault-tolerant, and low-latency storage
service optimized for real-time workloads.Further information can be found here: http://bookkeeper.apache.org/",
+    diff --git repo/packages/B/bookkeeper/2/resource.json repo/packages/B/bookkeeper/2/resource.json
+    index 3801750e..72690ea0 100644
+    --- repo/packages/B/bookkeeper/2/resource.json
+    +++ repo/packages/B/bookkeeper/2/resource.json
+    @@ -2,7 +2,7 @@
+       "assets": {
+         "container": {
+           "docker": {
+    -        "bookkeeper": "apache/bookkeeper:4.5.1"
+    +        "bookkeeper": "apache/bookkeeper:4.7.0"
+           }
+         }
+       },
+    ```
+
+5. Commit the change, create a pull request and wait for it to be approved and merged.
+
+    ```shell
+    $ git add repo/packages/B/bookkeeper/2
+    $ git commit -m "new bookkeeper version"
+    ```
+
 ### Mark the version as released in JIRA and Github
 
 In JIRA, inside [version management](https://issues.apache.org/jira/plugins/servlet/project-config/BOOKKEEPER/versions),
hover over the current release and a settings menu will appear. Click `Release`, and select
today’s date.

-- 
To stop receiving notification emails like this one, please contact
sijie@apache.org.

Mime
View raw message