You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/03/13 23:07:43 UTC

[GitHub] sijie closed pull request #1247: Issue 336: add DC/OS package update and instructions

sijie closed pull request #1247: Issue 336: add DC/OS package update and instructions
URL: https://github.com/apache/bookkeeper/pull/1247
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/site/community/release_guide.md b/site/community/release_guide.md
index cd8fff155..4f5c21dac 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.


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services