|
1 | | -version: 1 |
| 1 | +version: 2 |
2 | 2 | application: zookeeper |
3 | | -is_chiselled: False |
4 | 3 | description: | |
5 | | - Current Apache ZooKeeper Docker Image from Canonical, based on Ubuntu. |
6 | | - Receives security updates and tracks the newest combination of Apache |
7 | | - ZooKeeper and Ubuntu. **This repository is free to use and exempted from |
8 | | - per-user rate limits.** |
9 | | - |
10 | | - # About Apache ZooKeeper |
11 | | - ZooKeeper is a centralized service for maintaining configuration information, |
12 | | - naming, providing distributed synchronization, and providing group services. |
13 | | - All of these kinds of services are used in some form or another by |
14 | | - distributed applications. Read more on the Apache website. This image is |
15 | | - shipped in support of the Apache Kafka image. |
16 | | - |
17 | | - Please note that the images tagged up to 3.1 are Dockerfile-base images, |
18 | | - whereas from version 3.8.2 onward the images are now rocks. As such the |
19 | | - entrypoint is now Pebble. Read more on the |
20 | | - [Rockcraft docs](https://canonical-rockcraft.readthedocs-hosted.com/en/latest/explanation/rocks/). |
| 4 | + ZooKeeper is a centralized service for maintaining configuration information, |
| 5 | + naming, providing distributed synchronization, and providing group services. |
| 6 | + All of these kinds of services are used in some form or another by |
| 7 | + distributed applications. This rock is shipped in support of the Apache Kafka rock. |
| 8 | +
|
| 9 | + Please note that rocks tagged up to 3.1 are Dockerfile-based images, |
| 10 | + whereas from version 3.8.2 onward the rocks are chiseled rocks. |
| 11 | +website: https://zookeeper.apache.org/ |
| 12 | +issues: https://github.com/canonical/zookeeper-rock/issues |
| 13 | +source-code: https://github.com/canonical/zookeeper-rock |
21 | 14 |
|
22 | | -# --- USAGE INFORMATION --- |
23 | 15 | docker: |
24 | | - parameters: |
25 | | - - -p 2181:2181 |
26 | | - access: Access your ZooKeeper server at `http://localhost:2181`. |
27 | | -parameters: |
28 | | - - type: -e |
29 | | - value: 'TZ=UTC' |
| 16 | + parameters: >- |
| 17 | + -p 2181:2181 |
| 18 | + run_conclusion: | |
| 19 | + Access the ZooKeeper server at `localhost:2181`. |
| 20 | + legacy: |
| 21 | + parameters: >- |
| 22 | + -p 2181:2181 |
| 23 | + run_conclusion: | |
| 24 | + Access the ZooKeeper server at `localhost:2181`. |
| 25 | +
|
| 26 | +config: |
| 27 | + TZ: |
| 28 | + type: env |
30 | 29 | description: Timezone. |
31 | | - - type: -p |
32 | | - value: '2181:2181' |
33 | | - description: Expose ZooKeeper server on `localhost:2181`. |
34 | | - - type: -v |
35 | | - value: "/path/to/config/file:/etc/zookeeper/zoo.cfg" |
| 30 | + default: 'UTC' |
| 31 | + '`-v <path>:/etc/zookeeper/zoo.cfg`': |
| 32 | + type: mount |
36 | 33 | description: Local ZooKeeper configuration file. |
37 | | - - type: -v |
38 | | - value: "zookeeperData:/var/lib/zookeeper/data" |
39 | | - description: > |
40 | | - "Persist data in a docker volume named `zookeeperData`. " |
41 | | - "Make sure that the mount point is consistent with the configuration property `dataDir`. |
42 | | - - type: -v |
43 | | - value: "zookeeperLogData:/var/lib/zookeeper/data-log" |
44 | | - description: > |
45 | | - "Persist data in a docker volume named `zookeeperLogData`. " |
46 | | - "Make sure that the mount point is consistent with the configuration property `dataLogDir`. |
47 | | -debug: |
48 | | - text: | |
49 | | - ### Debugging |
50 | | - |
51 | | - To debug the container: |
52 | | - ```bash |
53 | | - docker logs -f <zookeeper-container> |
54 | | - ``` |
55 | | - |
56 | | - To get an interactive shell: |
57 | | - ```bash |
58 | | - docker exec -it <zookeeper-container> /bin/bash |
59 | | - ``` |
| 34 | + '`-v <volume>:/var/lib/zookeeper/data`': |
| 35 | + type: mount |
| 36 | + description: Persist data mounted into the container. The mount point should be consistent with the configuration property `dataDir`. |
| 37 | + '`-v <volume>:/var/lib/zookeeper/data-log`': |
| 38 | + type: mount |
| 39 | + description: Persist data mounted inside the container. The mount point should be consistent with the configuration property `dataLogDir`. |
| 40 | + '`-p <port>:2181`': |
| 41 | + type: port |
| 42 | + description: Expose the container's port `2181` on the host's `<port>`. |
0 commit comments