51c2c9f7ac
* In preperation for moving to Elastic's CI Add dockerfile to build image for testing python client in a docker container add docker-compose to create environment for running tests against specific versions of ES Add Makefile to make it easy to execute tests and cleanup add wait-for-elasticsearch.sh script to wait for elasticsearch before executing the tests. * add pull and comment about pushing requring auth * spelling errors * adding CI directory for jenkins to pick up fixing typo too * fix test-matrix and create working run-tests * add comment about why skipping python 2.6 * adding dockerfiles to create base images for ci
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"]
|