moved utils to a directory
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ To run the code generation make sure you have pre-requisites installed:
|
||||
Then you should be able to run the code generation by invoking:
|
||||
|
||||
```
|
||||
python generate_api.py
|
||||
python utils/generate_api.py
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ RUN pip install ipdb python-dateutil GitPython
|
||||
RUN git clone https://github.com/elastic/elasticsearch.git /code/elasticsearch
|
||||
|
||||
WORKDIR /code/elasticsearch-py
|
||||
COPY . .
|
||||
COPY .. .
|
||||
RUN pip install .[develop]
|
||||
RUN python setup.py develop
|
||||
CMD ["/code/wait-for-elasticsearch.sh", "http://elasticsearch:9200", "--", "python", "setup.py", "test"]
|
||||
@@ -10,7 +10,7 @@ services:
|
||||
environment:
|
||||
- "TEST_ES_SERVER=http://elasticsearch:9200"
|
||||
volumes:
|
||||
- .:/code/elasticsearch-py
|
||||
- ..:/code/elasticsearch-py
|
||||
- esvol:/tmp
|
||||
networks:
|
||||
- esnet
|
||||
@@ -17,7 +17,7 @@ SEPARATOR = " # AUTO-GENERATED-API-DEFINITIONS #"
|
||||
# global substitutions for python keywords
|
||||
SUBSTITUTIONS = {"type": "doc_type", "from": "from_"}
|
||||
# api path(s)
|
||||
CODE_ROOT = Path(__file__).absolute().parent
|
||||
CODE_ROOT = Path(__file__).absolute().parent.parent
|
||||
BASE_PATH = (
|
||||
CODE_ROOT.parent
|
||||
/ "elasticsearch"
|
||||
Reference in New Issue
Block a user