Files
opensearch-pyd/docker-compose.yml
T
Nick Lang 4538df2aa0 Testing changes for Jenkins CI (#863)
* testing

* more fixes

* downgrade docker-compose file version cause jenkins

* fixing matrix

* back to elasticsearch_version

* skip py3.7 for now there's a bug

* add build badge and remove 3.3
Sphinx doesn't play nice with 3.3

* sphinx 1.7 drops support for python 3.3

* updating test matrix

* remove travis

* updating badges
2018-10-31 12:07:38 -06:00

37 lines
983 B
YAML

version: '3.2'
services:
client:
image: docker.elastic.co/clients/elasticsearch-py:${PYTHON_VERSION:-3}
build:
context: .
dockerfile: ./Dockerfile
args:
PYTHON_VERSION: ${PYTHON_VERSION:-3}
environment:
- "TEST_ES_SERVER=http://elasticsearch:9200"
volumes:
- .:/code/elasticsearch-py
- esvol:/tmp
networks:
- esnet
depends_on:
- elasticsearch
command: ["true"] # dummy command to override the command in the Dockerfile and do nothing.
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTICSEARCH_VERSION:-6.2.4}
volumes:
- esvol:/tmp
networks:
- esnet
environment:
- path.repo=/tmp
- "repositories.url.allowed_urls=http://*"
- node.attr.testattr=test
- bootstrap.memory_lock=false
- "discovery.zen.ping.unicast.hosts=elasticsearch"
- "http.max_content_length=5mb"
networks:
esnet:
volumes:
esvol: