13 lines
429 B
Docker
13 lines
429 B
Docker
|
|
ARG PYTHON_VERSION=3
|
||
|
|
FROM python:${PYTHON_VERSION}
|
||
|
|
RUN apt-get update && apt-get install -y git curl
|
||
|
|
RUN pip install ipdb python-dateutil GitPython
|
||
|
|
|
||
|
|
RUN git clone https://github.com/elastic/elasticsearch.git /code/elasticsearch
|
||
|
|
|
||
|
|
WORKDIR /code/elasticsearch-py
|
||
|
|
COPY . .
|
||
|
|
RUN pip install .[develop]
|
||
|
|
RUN python setup.py develop
|
||
|
|
CMD ["/code/wait-for-elasticsearch.sh", "http://elasticsearch:9200", "--", "python", "setup.py", "test"]
|