Commit 3e72337 1 parent 9511da0 commit 3e72337 Copy full SHA for 3e72337
File tree 1 file changed +8
-32
lines changed
1 file changed +8
-32
lines changed Original file line number Diff line number Diff line change 1
- # UNIT9 test
2
-
3
- Test for encourage Unit9 people to hire me! (wink)
4
-
5
- ## Run the example with docker
1
+ # Zookeeperize
6
2
``` bash
7
- cd docker
8
- sh build.sh
9
- sh run.sh
10
- # After this, point your browser to http://localhost:5000/api
11
- ```
12
-
13
- ## Run the application locally
14
-
15
- ### Create your virtualenv and run the source
16
- ``` bash
17
- python -m venv ~ /.virtualenv/unit9
18
- . ~ /virtualenv/unit9/bin/activate
19
- pip install -r requirements.txt
20
- . source.me
21
- python src/main.py
22
- # After this, point your browser to http://localhost:5000/api
23
- ```
24
-
25
- ## Run the application by installing it
26
-
27
- ### Create your virtualenv and install the application
28
- ``` bash
29
- python -m venv ~ /.virtualenv/unit9
30
- . ~ /virtualenv/unit9/bin/activate
31
- python setup.py install
32
- unit9
33
- # After this, point your browser to http://localhost:5000/api
3
+ python
4
+ from modules.utils.zookeeper import zk_power
5
+ z = zk_power(zookeeper_hosts=[' 192.168.100.10' ])
6
+ z.zk.start ()
7
+ z.set(' /tmp' , ' test' )
8
+ print(z.get(' /tmp' ))
9
+ ...
34
10
```
You can’t perform that action at this time.
0 commit comments