Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Commit d4646a3

Browse files
committed
Adding a dockerfile for people who just want to run it
1 parent 32579bf commit d4646a3

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ Another option is to manually build and compile. First, install the thrift compi
1818
brew install thrift
1919
```
2020

21-
There are two ways of invoking this tool:
22-
23-
You can build and install it to */usr/local/bin/thriftcli*
21+
Then you can build and install it to */usr/local/bin/thriftcli*
2422
```
2523
python setup.py install
2624
```
@@ -35,19 +33,24 @@ Alternatively, you can build and start it all at once without installing: (conve
3533
python -m thriftcli server_address endpoint_name thrift_file_path [options]
3634
```
3735

36+
A last option, if you don't care about wasting a lot of disk space for Docker:
37+
```
38+
docker run vtatai/thriftcli --help
39+
```
40+
3841
## Running
3942

40-
All options for executing thriftcli can be accessed by doing:
43+
When first running it can be helpful to do:
4144
```
4245
thriftcli --help
4346
```
4447

45-
This is the list of most common arguments:
48+
This will list all the arguments accepted by the tool. The most common are:
4649
- **server_address** URL to send the request to. This server should listen for and implement the requested endpoint.
4750
- **endpoint_name** Service name and function name representing the request to send to the server.
4851
- **thrift_file_path** Path to the thrift file containing the endpoint\'s declaration.
4952

50-
Options:
53+
And the main options:
5154
- **-h --help** Display a help message
5255
- **-I --includes [thrift_dir_path...]**
5356
Path to additional directory to search in when locating thrift file dependencies.

docker/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM python:2.7
2+
3+
RUN pip install thriftcli==1.3
4+
5+
ENTRYPOINT [ "thriftcli" ]

0 commit comments

Comments
 (0)